|
From: Alain A. <ala...@wa...> - 2014-10-03 14:09:17
|
Le 03/10/2014 13:15, Alexander S.Kresin a écrit :
>> 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.
ok, I must do it before the window is closed, so before ACTIVATE DIALOG
I suppose that I must assign the value to the variable before INIT WINDOW
and set the new value like this:
cEdit01 := oEdit01:GetText()
I have tried it, but it doesn't work, variable isn't update
> 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.
I have tried it and it works, but I have a problem with accents that I
can't enter in the field
In console, I have these errors:
(GeneTools:19849): Gtk-CRITICAL **: IA__gtk_entry_set_text: assertion
`text != NULL' failed
That's the reason why I tried to use editbox
Before main, I have added:
REQUEST HB_CODEPAGE_UTF8
and in main() :
hwg_SetAppLocale( "UTF8" )
Same error ...
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-09-09 22;51) |
HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2285)
------------------------------------------------------------------------
|