Re: keep windows on top!

Phil Edwards <[email protected]>
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
Phil Edwards wrote:
> tjerk hoekstra wrote:
>> *my application has 20 childwindows wich I create at startup and make 
>> invisible, when I need them*
>> *i change them to visible. OK it works but there are 2 issues...*
>> *1) When the application starts you see flickering of all the windows 
>> being created and then disappear,*
>> *        rather ugly..Any suggestion?*
> 
> In the resource editor, click on 'Edit' then 'Background Info'. Make 
> sure that the 'Visible on Startup' box is not ticked. All your child 
> windows will be created as normal but will not appear until you make a 
> call to something like myChildWindow.Show(). This ought to fix the 
> flicering.
> 

Hmmm....this reply doesn't actually explain what I meant, my apologies.

Load up the PythonCard resource editor. For each of your child windows, 
open the resource file associated with it. Click 'Edit' then click 
'Background info'. Make sure that the 'visible at startup' box is not 
ticked. Save the resource file if necessary. Move on to the next one.

You should now find that when you run your main application, the 
'flickering windows' effect has gone away. If you have added code in the 
on_initialize() section of your application to hide all of your child 
windows, you can remove these lines as they are no longer needed.

Hope that's a bit clearer.

-- 

Regards

Phil Edwards
Brighton, UK

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.