PDA

View Full Version : Using dialog as graphic console



Petr Schreiber
20-09-2005, 15:00
Hi,

I tried to make something like simple "graphic console". I mean window, to which I could draw from script.

But... If the dialog is modal, then script is stopped until dialog ends ( that's logical ), and if dialog is modeless, then it appears just for portion of second and then it disappears.

Is there any way how to implement my mad script-window idea ? :)


Thanks,
Psch

ErosOlmi
20-09-2005, 15:18
Stange, you should be able to see the dialog and continue script execution.
Of course if the script finish, all the dialogs created by the script will be destroyed.

Dialog should be created and showed with
DIALOG SHOW MODELESS hDlg
The function creating the dialog should return the dialog handl into a script variable. Than use the handl inside the script in order to manage the window.

Maybe in this case you should post your module source code to me, maybe via private message, in order to have a look.

Petr Schreiber
20-09-2005, 15:29
Eros, I apologize :oops:

Modeless dialogs are ok, I just had to force redraw when adding controls during the script (and also the script ended quite soon ).

All is ok now

Thanks,
Psch