Page 1 of 2
Line break in a Multi-Line Button
Posted: Wed Mar 25, 2009 2:00 pm
by RalphMDS
Is there a way to force a line-break on a multi-line button? I have tried things like "This is my"+chr(13)+chr(10)+"button text", but that does not seem to be the way to go...
Thanks,
Ralph
Re: Line break in a Multi-Line Button
Posted: Wed Mar 25, 2009 2:23 pm
by luisvasquezcl
Hi,
this is not support by hmg.
Sorry.
Regards
Luis Vasquez
Re: Line break in a Multi-Line Button
Posted: Wed Mar 25, 2009 2:27 pm
by RalphMDS
Thank you for the fast reply Luis.
Best regards,
Ralph
Re: Line break in a Multi-Line Button
Posted: Wed Mar 25, 2009 2:37 pm
by esgici
Hi Ralph, Welcome
Hola Luis
Are you sure ?
We have a MULTILINE option in the Text And Image Button (Windows XP or later) section of BUTTON.
I don't tried yet.
Regards
--
Esgici
Re: Line break in a Multi-Line Button
Posted: Wed Mar 25, 2009 3:05 pm
by esgici
Hi
I had tried, it work fine
Look at this working sample :
Code: Select all
#include "minigui.ch"
PROC Main()
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 640 ;
HEIGHT 480 ;
TITLE 'Multiline Button Demo' ;
MAIN ;
TOPMOST
@ 50 ,100 BUTTON Button_1 ;
CAPTION "Single Line Button" ;
ACTION MsgBox( "This is a Single Line Button" ) ;
WIDTH 200 ;
HEIGHT 30
@ 200 ,100 BUTTON Button_2 ;
CAPTION "Multiple Line Button" ;
ACTION MsgBox( "This is a Multiple Line Button" ) ;
WIDTH 100 ;
HEIGHT 30 ;
MULTILINE
END WINDOW
Form_1.Center
Form_1.Activate
RETU // Main()
BTW, Sorry Ralph, I haven't any experience on DO REPORT, so I can't answer you questions about it.
Regards
--
Esgici
Re: Line break in a Multi-Line Button
Posted: Wed Mar 25, 2009 3:16 pm
by esgici
Hi
Sorry, may be I misunderstood the question.
Please add this :
Code: Select all
@ 300 ,100 BUTTON Button_3 ;
CAPTION SPACE( 10 ) + "Multiple" + SPACE(10) + "Line Button" ;
ACTION MsgBox( "This is a Multiple Line FORCED Button" ) ;
WIDTH 100 ;
HEIGHT 30 ;
MULTILINE
"Forcing" require a little fine adjustment
Regards
--
Esgici
Re: Line break in a Multi-Line Button
Posted: Wed Mar 25, 2009 7:06 pm
by luisvasquezcl
hi esgici,
had no idea that you could, thanks for the clarification
I sorry Ralph
regards
Luis Vasquez
Re: Line break in a Multi-Line Button
Posted: Fri Mar 27, 2009 5:29 am
by dhaine_adp
Ahallan Wahsahllan Esgici,
It seem's that you've never ran out of answers

Thank for always lending a helping hand... More power.
Danny
Re: Line break in a Multi-Line Button
Posted: Fri Mar 27, 2009 9:27 am
by esgici
Hi Danny
Thanks
Everything is for community; Viva Clipper, Viva Harbour, Viva HMG
Maasselame
--
Esgici
Re: Line break in a Multi-Line Button
Posted: Fri Mar 27, 2009 10:27 am
by Rathinagiri
esgici wrote:Everything is for community; Viva Clipper, Viva Harbour, Viva HMG
Nice words.