Display a image for a few seconds before the main window.

Started by Mennohexo on 28-Jun-2017/15:35:50-7:00
Hi there , i have a great GUI Ready and want to display a image for about 4 seconds before the main Window opens. Dont know how to unview. Here is the code : view center-face layout [ image load %hs_soft.gif ] wait delay: 4 unview wait delay is working but only after manually closing the layout. How to make the delay DURING the layout ? After this the main layout should open ! WBR MH
The best solution is to display only the image in the center screen for 4 seconds. Without a layout. Then the GUI Window as layout should appear. It's a LOGO Display. a little bit Show.
Use the /NEW refinement on VIEW: view/new center-face layout [ image load %hs_soft.gif ] wait delay: 4 unview
ha ha haaaaaaaaaaa. Cool. That works.
When i think of FACE , i remember Face-Man from the A-Team. That's true anyway.
You can also use 'flash, again, a few characters shorter: flash [image logo.gif] ; do something wait 4 unview
Note that can also use the view/new technique to handle events and to perform other evaluations: R E B O L [] view/new w: layout [ btn "1" [face/text: 1 + (do face/text) show face] ] forever [ if not viewed? w [unview break] wait .1 show w ]

Reply