Re: Win3lib main loop

new topic     » goto parent     » topic index » view thread      » older message » newer message

Howdy Florian!

>     I'd like to include in my program a start window to show the users
> that the program is loadind the includes file.
>
> Is it possible with win32lib or anything else because I can't find any
> way to do this?

Yes.  What your wanting sound like what's called a "splash screen."  To do
this ...

1.  Include win32lib.ew.
2.  Use objects and create() to create your splash screen and controls.
3.  Display the splash screen using openWindow() .. **_NOT WinMain()_**
4.  Start including the other files, and documenting the inclusions on your
splash screen.
5.  Close the splash screen using closeWindow().
6.  Optionally, free the splash screen's memory resources using destroy().
7.  Tarry on ...

Be sure when opening the splash screen to not use WinMain().  If you do
that, then your program will end when the splash screen closes, which is
more than likely not what you're wanting.

Also, you'll need the most recent version of win32lib to pull this off ...
in the previous versions, the first form opened became the program's main
form, which caused problems.

All the routines mentioned here can be found in the win32lib.ew
documentation.  Any other questions, feel free to ask!

Happy Hunting,

Travis Beaty
Claude, Texas.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu