Line break in a Multi-Line Button

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

RalphMDS
Posts: 21
Joined: Wed Mar 25, 2009 1:24 pm
Location: New Jersey, U.S.A.

Line break in a Multi-Line Button

Post 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
When your toolbox only contains a hammer, everything looks like a nail...
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Line break in a Multi-Line Button

Post by luisvasquezcl »

Hi,
this is not support by hmg.
Sorry.
Regards
Luis Vasquez
RalphMDS
Posts: 21
Joined: Wed Mar 25, 2009 1:24 pm
Location: New Jersey, U.S.A.

Re: Line break in a Multi-Line Button

Post by RalphMDS »

Thank you for the fast reply Luis.

Best regards,

Ralph
When your toolbox only contains a hammer, everything looks like a nail...
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Line break in a Multi-Line Button

Post 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
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Line break in a Multi-Line Button

Post 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
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Line break in a Multi-Line Button

Post 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
Viva INTERNATIONAL HMG :D
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Line break in a Multi-Line Button

Post by luisvasquezcl »

hi esgici,
had no idea that you could, thanks for the clarification
I sorry Ralph
regards
Luis Vasquez
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: Line break in a Multi-Line Button

Post 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
Regards,

Danny
Manila, Philippines
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Line break in a Multi-Line Button

Post by esgici »

Hi Danny

Thanks :D

Everything is for community; Viva Clipper, Viva Harbour, Viva HMG :!:


Maasselame

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Line break in a Multi-Line Button

Post by Rathinagiri »

esgici wrote:Everything is for community; Viva Clipper, Viva Harbour, Viva HMG :!:
Nice words.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply