RE: [Pythoncard-users] showing and moving the main window
by Kevin Altis other posts by this author
Apr 24 2002 5:36AM messages near this date
[Pythoncard-users] showing and moving the main window
|
[Pythoncard-users] PythonCard for Visual Basic (VB) users
> From: David Primmer
>
> I have my window positions stored in a config file and I load their
> positions at startup. I can keep them all hidden until they've been
> moved except for the main window. Even if I call self.Show(0) as the
> first line in onopenbackground and then don't call Show until I've moved
> the window, I get a flash of window on the screen and then it reappears
> in the intended location. How can I avoid this?
The window is shown automatically in the OnInit method of class
PythonCardApp in model.py. The openBackground event is generated after this
occurs, so you don't have any control over it. We could have an optional
'visible' property for the background which if set to 0 would prevent the
background from being shown and then you could explictly make it visible in
the openBackground handler.
I could add 'visible' later this week unless there are objections.
ka
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
David Primmer
Kevin Altis
|