1. Display message when loading

G'Day all,
How can I open the main window and display a progress bar as the data loads.
At the moment my data loads in the on_open routine for the main window but
it executes these statements before actually displaying the window. I know
how to use the progress bar just want something on the screen so a user
knows something's happening.

Regards

Tony Steward

Come Visit Me At www.locksdownunder.com

new topic     » topic index » view message » categorize

2. Re: Display message when loading

Have you tried using:
showWindow(yourwindow,SW_SHOWNORMAL)

... just before your loading routine ?
Might have to do this for the progress 'window' too, I dunno.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Display message when loading

Howdy Mr. Steward!


> G'Day all,
> How can I open the main window and display a progress bar as the data
loads.
> At the moment my data loads in the on_open routine for the main window but
> it executes these statements before actually displaying the window. I know
> how to use the progress bar just want something on the screen so a user
> knows something's happening.

The way I typically would do something like this is to create a special
window for the progress bar, which could contain a label with something like
"Now Loading.  Hold your horses ..."  You could open this window in your
main window's onOpen routine; however, *do not make it a child of the main
window!*  It will need to be a parent window (aka the child is 0).  AFAIK,
child windows can only be seen when the parent is visible.

Since it's a one time window, you could declare object variables in the
onOpen routine to declare the controls, then destroy them at the end of the
procedure, before the variables go out of scope.

Hope I haven't confused you.

Happy Hunting,

Travis Beaty
Claude, Texas.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu