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

2016-08-23 Thread Charlie
You can have the "Buttons" I created in a group and this will work OK. Check out the attached based on my last example, now 30 lines of code. SimpleButton.tar -- View this message in context: http://gambas.8142.n7.nabble.com/Posi

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

2016-08-22 Thread herberth guzman
Super, it works fine, this is what I need. Thank you all. Fabien Thanks replace Draw.RichText($sText, iX, iY - 2, Draw.W, Draw.H, align.Bottom) Draw.RichText(Html($sText), 0, 0, Me.W, Me.H + Me.H / 2, Align.Center) Cool > remove the font scaling part and replace draw.text by : > > Draw.RichTe

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

2016-08-22 Thread Gianluigi
So it works really well ๐Ÿ‘ 2016-08-22 21:31 GMT+02:00 Fabien Bodard : > remove the font scaling part and replace draw.text by : > > Draw.RichText(Html($sText), 0, 0, Me.W, Me.H + Me.H / 2, Align.Center) > > 2016-08-22 19:21 GMT+02:00 herberth guzman : > > Thanks Gianluigi > > Thanks Fabien > > Tth

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

2016-08-22 Thread Fabien Bodard
remove the font scaling part and replace draw.text by : Draw.RichText(Html($sText), 0, 0, Me.W, Me.H + Me.H / 2, Align.Center) 2016-08-22 19:21 GMT+02:00 herberth guzman : > Thanks Gianluigi > Thanks Fabien > Tthanks Charlie > > Examples are good, I look at the potential of prawns, and ease of do

Re: [Gambas-user] Positioning Image and Text in a Button (resolved)

2016-08-22 Thread herberth guzman
Thanks Gianluigi Thanks Fabien Tthanks Charlie Thank you all for your help, I can solve my problem (I oriento Fabien) The Code Draw.RichText ($ sText, x, y, Draw.W, Draw.H, align.Bottom) -- ___

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

2016-08-22 Thread herberth guzman
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 cla

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

2016-08-21 Thread Gianluigi
Yes Fabien, You really are right, Gambas is fabulous! ๐Ÿ˜ƒ Big thanks to Benoit and to you that help him. Regards Gianluigi 2016-08-21 10:02 GMT+02:00 Fabien Bodard : > 2016-08-20 14:31 GMT+02:00 Gianluigi : > > Now it really is a square button. > > The style drawing flags, is implemented. > > > >

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

2016-08-21 Thread Fabien Bodard
2016-08-20 14:31 GMT+02:00 Gianluigi : > Now it really is a square button. > The style drawing flags, is implemented. > > Regards > Gianluigi Well when i see the simplicity of this code ... I must to say, I love Gambas ! > > 2016-08-20 13:34 GMT+02:00 Gianluigi : > >> ๐Ÿ˜ƒ >> >> Sometimes the

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

2016-08-20 Thread Gianluigi
Now it really is a square button. The style drawing flags, is implemented. Regards Gianluigi 2016-08-20 13:34 GMT+02:00 Gianluigi : > ๐Ÿ˜ƒ > > Sometimes the simple things turn out complicated to use. > > Regards > Gianluigi > > 2016-08-20 11:43 GMT+02:00 Charlie : > >> I thought I would add to this

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

2016-08-20 Thread Gianluigi
๐Ÿ˜ƒ Sometimes the simple things turn out complicated to use. Regards Gianluigi 2016-08-20 11:43 GMT+02:00 Charlie : > I thought I would add to this debate. The examples above work just fine but > they seem very complicated to me. > I have taken your picture, put it in a PictureBox and in 8 lines

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

2016-08-20 Thread Charlie
I thought I would add to this debate. The examples above work just fine but they seem very complicated to me. I have taken your picture, put it in a PictureBox and in 8 lines of code have a button you can click. SimpleButton.tar -

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

2016-08-18 Thread Gianluigi
or something like that (comme ci comme รงa :-) ) Regards Gianluigi 2016-08-18 14:23 GMT+02:00 Fabien Bodard : > Take a look at that > > 2016-08-17 21:11 GMT+02:00 herberth guzman : > > Need help please... > > > > I have a Button on my Form. > > I want to have an image on the center and text on

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

2016-08-18 Thread Fabien Bodard
Take a look at that 2016-08-17 21:11 GMT+02:00 herberth guzman : > 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 c

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

2016-08-17 Thread herberth guzman
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