Re: splashscreen [message #34406] |
Fri, 07 March 2003 15:46  |
ronn
Messages: 123 Registered: April 1999
|
Senior Member |
|
|
in article 3E6834EB.3090907@ee.uwa.edu.au, Thomas Gutzler at
tgutzler@ee.uwa.edu.au wrote on 3/7/03 12:58 AM:
> Hi,
>
> what would be the easiest way to display a splashscreen (like IDL does)
> before starting an application ?
> It shouldn't have any menus, titles, whatever - like the window that
> pops up using tv.
>
> regards,
> Tom
>
Hi Tom,
This is about as simple as you can get.
-Ronn
----------------------
pro splashpanel
xoff = 100 ;probably should use keywords
yoff = 100
base = widget_base(tlb_frame_attr=7,xoff=xoff,yoff=yoff)
;make the draw widget the same size as your image
drawId = widget_draw(base,xsize=200,ysize=100,retain=2)
widget_control,base,/realize
image = dist(200,100) ;insert your image here
tv,image
xyouts,100,50,align=0.5,'SPLASH!!!!',/device
wait,1 ;delay in seconds or you can get fancy and use a timer
widget_control, base,/destroy
return
end
--------------------
--
Ronn Kling
KRS, inc.
email: ronn@rlkling.com
"Application Development with IDL"� programming book updated for IDL5.6!
"Calling C from IDL, Using DLM's to extend your IDL code"!
"Power Graphics with IDL, A Beginner's Guide to Object Graphics", NEW BOOK!
http://www.rlkling.com/
|
|
|