[Gambas-user] Positioning Image and Text in a Button

herberth guzman herberthguzman at ...626...
Wed Aug 17 21:11:25 CEST 2016


Need help please...

I have a Button on my Form.
I want to have an image on the center and text on the center.
But I cant get the proper Format.

i can create a new button that has  in it's properties:


Image : you can insert an image from anywhere (local or resource)
ImageAlign : Set it to Middle Center
TextAlign : Set it to Middle Center

I have an example of New Button Fabien made, but I can not justify the text.

Deputy picture and Class of what I need to work.



Herberth Guzmán
-------------- next part --------------
A non-text attachment was scrubbed...
Name: B_n.png
Type: image/png
Size: 7722 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160817/c1522ab5/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MyButton.class
Type: application/octet-stream
Size: 3419 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160817/c1522ab5/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MyButton.png
Type: image/png
Size: 6591 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160817/c1522ab5/attachment-0001.png>


More information about the User mailing list