Re: Widgets in VM [message #38439] |
Mon, 08 March 2004 02:02 |
akalemis
Messages: 2 Registered: March 2004
|
Junior Member |
|
|
Thanks David the references were very useful as well as chapter 13 of
your book, I am trying now to "modalise" my widgets. I encountered
another issue that of EXECUTE command. RSI's Interfile reader
(READ_INTERFILE) uses it and I had to find a way around it so as to
work in VM environment. This issue worries me though that more
routines from RSI might use EXECUTE...
Thanks again,
Antonis
|
|
|
Re: Widgets in VM [message #38455 is a reply to message #38439] |
Fri, 05 March 2004 10:41  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Antonis writes:
> I recently started using VM and it gives me a bit of headache... I
> have a .prj with one application which creates a main widget and when
> certain buttons are pressed it launches secondary widgets which get
> the info from the user and return back to the program flow. In proper
> IDL environment it runs perfectly.
> (I am not using /NO_BLOCK or /MODAL in XMANAGER.) When I run the .sav
> version and a secondary widget is launched, after its destruction, it
> does not return back to the program to process the new info, it just
> stops until I launch again the same widget, only then goes back but of
> course it also re-launches the widget.
> If the above are not very confusing and anybody out there knows the
> reason, I would appreciate to tell be what I am doing wrong.
I'm afraid you are going to have to learn how to write a proper
modal widget. You can't rely on blocking in the VM. Sorry. :-)
These articles might help:
http://www.dfanning.com/widget_tips/modal_blocking.html
http://www.dfanning.com/widget_tips/popup.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|