I've downloaded lastest version of BGRAControls, but it does not seem to work. When bitmap option is not enabled, the image is clipped, and when bitmap option is enabled, it repeats pixels strangely.
You can give me that image?
The image must have 4 states: normal, enter, pressed and disabled, all of the same height and width (this is also for normal ImageButton).
The border is inside the image, you must specify only the width and height of the border in the image.
Try with the attached image:
BorderWidth := 5; BorderHeight:=5;
Or try with the image in this post
http://lazarus.freepascal.org/index.php/topic,12411.msg82590.html#msg82590BitmapOptions.Enable := True;
BitmapOptions.FillCenter := True;
BitmapOptions.BorderWidth := 2;
BitmapOptions.BorderHeight := 2;
Or this one:
http://wiki.lazarus.freepascal.org/Image:samplebgraimagebutton.pngBorderHeight := 2; BorderWidth := 2;