Window 'flashing' when changing location or size using code
Posted: Thu Oct 16, 2008 5:45 pm
Hi,
Ive been trying to find the answer to this everywhere!
I have a simple piece of code which stores the left, top, width and height of a stack in a text file next to a user name
When a user starts the software, then get a login screen, select a use and the software then loads the 'main' form. During the load it sets the height, width etc to the location the user previously used.
Problem is the window flickers and jumps around while the commands are being done.
Ive tried putting a lock screen message before issuing the commands, and putting them in the logon code, the preopenstack and the openstack handlers, but they are all pretty much the same.
Is there any way to stop the flickering, or perhaps to set the stack width, height and location in one step to reduce it?
Thanks
Andy
Ive been trying to find the answer to this everywhere!
I have a simple piece of code which stores the left, top, width and height of a stack in a text file next to a user name
When a user starts the software, then get a login screen, select a use and the software then loads the 'main' form. During the load it sets the height, width etc to the location the user previously used.
Problem is the window flickers and jumps around while the commands are being done.
Ive tried putting a lock screen message before issuing the commands, and putting them in the logon code, the preopenstack and the openstack handlers, but they are all pretty much the same.
Is there any way to stop the flickering, or perhaps to set the stack width, height and location in one step to reduce it?
Thanks
Andy