Nanaki Posted January 7, 2007 Share Posted January 7, 2007 Hi, I currently have an app that contains a Picture and a Label on top of it (it puts some text on top of the picture). However, in some situations (like very early in a windows installation) that pic and label won't appear on the screen (just an empty GUI-window). Anyway, what I have now, to prevent this, is this: GUICtrlSetState($pic, $GUI_SHOW) GUICtrlSetState($label, $GUI_SHOW) I've put this code in the while-loop for the gui. It works, but it also makes the pic "blink" when it's already visible. Is there a way to reshow gui-elements without making them blink? Thanks in advance if so. Link to comment Share on other sites More sharing options...
GaryFrost Posted January 7, 2007 Share Posted January 7, 2007 Hi, I currently have an app that contains a Picture and a Label on top of it (it puts some text on top of the picture). However, in some situations (like very early in a windows installation) that pic and label won't appear on the screen (just an empty GUI-window). Anyway, what I have now, to prevent this, is this: GUICtrlSetState($pic, $GUI_SHOW) GUICtrlSetState($label, $GUI_SHOW) I've put this code in the while-loop for the gui. It works, but it also makes the pic "blink" when it's already visible. Is there a way to reshow gui-elements without making them blink? Thanks in advance if so. might try a condition using GUICtrlGetState see if it is showing already. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nanaki Posted January 7, 2007 Author Share Posted January 7, 2007 (edited) That's the problem: it returns the value $GUI_SHOW (I never said in the code to hide it). In normal conditions the picture and label show, and in the not-so-normal conditions AutoIT "thinks" it's showing it. Thanks for the reply though. Edited January 7, 2007 by Nanaki Link to comment Share on other sites More sharing options...
GaryFrost Posted January 7, 2007 Share Posted January 7, 2007 might try GuiSetState(@SW_LOCK) and GuiSetState(@SW_UNLOCK) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nanaki Posted January 8, 2007 Author Share Posted January 8, 2007 The window still blinks after using @SW_UNLOCK. But I couldn't use it anyway, since I'm using an older version of AutoIT (a test version of 3.1), the latest (which I just tested LOCK and UNLOCK on) doesn't seem to make the label transparent and makes the compiled .exe over 200kB, which exceeds the limit for my purposes (floppy power!). Thanks though. 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