|
From: Alexander S.K. <al...@be...> - 2014-10-03 11:15:39
|
> 4) I tried to use editbox, but I failed to keep the edited value.
>
> @ 20,10 SAY cText01 SIZE 510, 22
> @ 20,25 EDITBOX oEdit01 CAPTION orpath ;
> STYLE WS_DLGFRAME ;
> SIZE 510, 26 COLOR hwg_VColor("FF0000")
oEdit01:GetText()
But have in mind that you can do this before the dialog box is
destroyed, for example from button's ON CLICK codeblock.
If you use @ 20,25 GET someVar ... insted of EDITBOX, the edited
value is available from appropriate variable ( someVar ) all the time
while this variable exists - exactly as in Clipper - see testget2.prg.
> 5) In this box (a few similar to the one in a.prg), I have two buttons:
> ok and cancel.
> How to know the clicked button ?
>
Use ON CLICK codeblock - you can set there appropriate flag, or do
something else. This is event-driven approach, which is used in GUI
applications.
Regards, Alexander.
|