comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: pop up widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: pop up widget [message #16440 is a reply to message #16434] Tue, 27 July 1999 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
FIT wrote:
>
> Hi,
>
> I am looking for a technique to produce a widget with the following
> characteristics:
>
> 1.) It pops up upon fulfillment of a certain program condition
> 2.) It always stays in front
> 3.) No user interaction can take place with the widget or with the
> remaining widgets of the program
> 4.) The widget disappears automatically after a limited period of time
> and normal interaction with the remaining widgets is going to take place
> again
>
> Any help is appreciated. Thank you in advance for Your efforts.
>


A top-level floating modal widget_base with nothing but a label, which
simply blocks for some period of time would seem to do the trick.

I tried something like:

pro MyApp_event, ev
warn,ev.top
end

pro warn, leader
b=widget_base(GROUP_LEADER=leader,/FLOATING,/MODAL,/COLUMN)
lab=widget_label(b,value=" Please Wait 10 Seconds ")
widget_control, b,/realize
wait,10
widget_control, b,/destroy
end

pro testtlb
app=widget_base(/ROW)
lab=widget_label(app,value='The application')
b=widget_button(app,value='Take Input')
widget_control, app,/REALIZE
XManager, 'MyApp',app,/NO_BLOCK
end

which seemed to do what you want. For some reason on my Linux vs.
5.2.1, it takes a moment for the warning text to appear after the base
is realized.

JD



--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Seeking Scientists versed in FP
Next Topic: IDLgrAXIS annotation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 07:21:23 PDT 2025

Total time taken to generate the page: 1.43919 seconds