Page 1 of 1

BUTTON question

Posted: Tue Jun 27, 2006 6:03 pm
by Jeff Barnes
Hi Everybody,

Is there any way to have more than one line of text on a button?


Thanks,

Jeff

Re: BUTTON question

Posted: Tue Jun 27, 2006 9:45 pm
by Enrico Maria Giordano
This is a working sample:

Code: Select all

#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
EMG