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

herberth guzman herberthguzman at ...626...
Mon Aug 22 19:21:50 CEST 2016


Thanks Gianluigi
Thanks Fabien
Tthanks Charlie

Examples are good, I look at the potential of prawns, and ease of doing
things.


What I do is like the example of Charlie.

The problem is that is not a button
They can be in a container 20 and that makes it hard.

As I can create a button from a class with the result I need.

Example Gianluigi

If Paint.Font.TextWidth ($ sText)> Then Me.W
     While Paint.Font.TextWidth ($ sText)> Me.W
       Paint.Font.Size - = 0.1
     Wend
   endif


I need the text is not Strech (Paint.Font.Size - = 0.1)
I need to be new line(2 lines).

Example

NOT
Chromium Web Browser

YES
Chromium Web
     Browser

Can you help me, please.


Herberth Guzmán
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bt1.png
Type: image/png
Size: 3305 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20160822/089afc9e/attachment.png>


More information about the User mailing list