atomman Posted October 17, 2007 Share Posted October 17, 2007 Don't know if this belongs in GUI support, but i don't think the problem has anything to do with the GUI code itself. Before i post code, i thought i'd ask if anyone has encountered a problem where their GUI will become corrupt and resize itself, sometimes dropping all controls? I have a tool-window GUI (no title bar) that's about 24px in height. Sometimes, for no apparent reason, it will resize itself vertically to fill the display and drop some/all of it's controls. It becomes just a solid color -- no labels, controls, etc.. So far this has only happened while the GUI is WinSetOnTop, 1 while Firefox is focused, though i don't know it has anything at all to do with FF (and the code doesn't really interact with FF other than to send a few key strokes). Link to comment Share on other sites More sharing options...
martin Posted October 17, 2007 Share Posted October 17, 2007 Don't know if this belongs in GUI support, but i don't think the problem has anything to do with the GUI code itself.Before i post code, i thought i'd ask if anyone has encountered a problem where their GUI will become corrupt and resize itself, sometimes dropping all controls?I have a tool-window GUI (no title bar) that's about 24px in height. Sometimes, for no apparent reason, it will resize itself vertically to fill the display and drop some/all of it's controls. It becomes just a solid color -- no labels, controls, etc.. So far this has only happened while the GUI is WinSetOnTop, 1 while Firefox is focused, though i don't know it has anything at all to do with FF (and the code doesn't really interact with FF other than to send a few key strokes).There is probably something in your script to do with sizing the gui, so add some debugging lines to trace what happens. Otherwise post some code. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
therks Posted October 17, 2007 Share Posted October 17, 2007 Before i post code, i thought i'd ask if anyone has encountered a problem where their GUI will become corrupt and resize itself, sometimes dropping all controls?Never happened to me. I'd say go ahead and post that code. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 17, 2007 Moderators Share Posted October 17, 2007 WinMove would be resizing it.A thing to remember. IniRead() returns a string, even if you have a number in there, so doing math, you'd need to make the IniRead a Number() or an Int() depending on what you need.Unfortunately, I didn't go through all that code, try to cut it down to about 50 lines that reproduces the issue for easier debugging. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
atomman Posted October 17, 2007 Author Share Posted October 17, 2007 Thanks! I couldn't cut the code size because i don't know how to reproduce the problem, but you have given me a start. I'll be commenting out the WinMove stuff to see what happens. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now