FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Split Text on Button Prompt
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Split Text on Button Prompt
Posted: Thu Jan 31, 2013 11:00 PM
To All

Very rarely do I use standard 'push buttons' but I am doing a 'retro' look with xp themes and the old button style looks pretty good.

Just curious how you can split the Prompt text of a button in to two rows .. this code does not work ..

Rick Lipkin

Code (fw): Select all Collapse
 REDEFINE BUTTON oBtn6 Prompt "Tier"+CRLF+"Summ" ID 117 of oMieA ;
            ACTION ( _MieRate( oWndMDI,@oWndChildB ) )


Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Split Text on Button Prompt
Posted: Thu Jan 31, 2013 11:09 PM
Rick,

instead of class TButton, You can change to :

REDEFINE BTNBMP oBtn[1] OF oDlg ;
ID 140 PIXEL 2007 ;
NOBORDER ;
PROMPT " &Print" + CRLF + "1. Image" ;
FILENAME c_path1 + "Print.Bmp" ;
ACTION ( IMGREPORT( 1, 1 ) ) ;
FONT oFont1 ;
LEFT
oBtn[1]:lTransparent := .t.
oBtn[1]:cToolTip = { "Print" + CRLF + "selected Images","Print", 1, CLR_BLACK, 14089979 }
oBtn[1]:SetColor( 0, )

Best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Split Text on Button Prompt
Posted: Thu Jan 31, 2013 11:31 PM
Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
Re: Split Text on Button Prompt
Posted: Fri Feb 01, 2013 10:51 AM
Rick ,

From code
Code (fw): Select all Collapse
  #define BS_MULTILINE 8192
@ 142 ,90 BUTTON oButIns PROMPT "test" OF oDlg PIXEL SIZE 40 , 25;
oButIns:nStyle  := NOR( oButIns:nStyle, BS_MULTILINE )

From resources 8192 , in rc

PUSHBUTTON "Technische fiche (Excel)", 425, 10 , 33 , 40 , 22 , 8192
test
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Split Text on Button Prompt
Posted: Fri Feb 01, 2013 02:06 PM

Franklin

Thank you .. 8192 was the trick .. added to the PUSHBUTTON line in the .rc

Rick Lipkin

Continue the discussion