Any code available to create a multiline button?
Useing resources..Borland workshop.
Thanks
Thank you
Harvey
Harvey
Any code available to create a multiline button?
Useing resources..Borland workshop.
Thanks
REDEFINE BUTTON oBtn2 Id 4002 OF ODLG2 ;
action(oDlg2:End())
REDEFINE BUTTON oBtn2 prompt "&select"+CRLF+"test" Id 4002 OF ODLG2 ;
action(oDlg2:End())Thanks again...I'll try it tomorrow and let you know.


hag wrote:Any code available to create a multiline button?
#include "Fivewin.ch"
#define CR CHR( 13 )
#define BS_MULTILINE 8192
FUNCTION MAIN()
LOCAL oDlg, oBtn
DEFINE DIALOG oDlg
@ 1, 1 BUTTON oBtn PROMPT "&Close" + CHR( 13 ) + "the dialog";
SIZE 50, 30;
ACTION oDlg:End()
oBtn:nStyle = NOR( oBtn:nStyle, BS_MULTILINE )
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
You have to add 8192 as button style in the resource.
EMG
enrico
Thanks for the solution on the multiline button.
Its not working..using borland resources.
You indicated to uwe to add 8192 as a resource style.
Can you explain how to do that.
Went into the text of the dialog to edit style change but can't figure out how to do it on the button.
You additional help woild be appreciated.
PUSHBUTTON "", 201, 10, 10, 65, 40, BS_MULTILINE | WS_TABSTOPEnrico
Perfect.
Needed to edit the rc file outside of borland.
Borland doesn't compile properly with the code you provided.
But it works great.
Thanks again.
PUSHBUTTON "", 201, 10, 10, 65, 40, 8192 | WS_TABSTOP
