[RESOLVED] Change "Ontop" state with other than "WinSetOnTop"?

Recommended Posts

Diana (Cda) 1

Diana (Cda) 1

Again, searches in help file and forum didn't reveal an answer I knew how to work with. I found lots about GUICtrlSetState ( controlID, state ), which seemed to be used as "GUICtrlSetState (1, $GUI_ONTOP)" but no matter where I put that in my GUI, didn't get an "ontop" condition.

Ultimately, I found "WinSetOnTop" and that appears to work but it seems not to be a proper way to do this. I mean, I'm no expert, of course, but it seems that GUICtrlSetState would be more appropriate to use ... (?)

Here is the pertinent part of the GUI. I put WinSetOnTop at the bottom of it.

Share this post

Link to post

Share on other sites

Diana (Cda) 1

Diana (Cda) 1

Hallelujah! Thank you so much!! I changed it just a tad (and I'm showing a different GUI as this is the one I'm working on today), but here is my version. I'm doing something very unusual, since the scripts don't compile without taking out the UDFs from their folder and putting them into same folder as the script that is being compiled, I've gone and extracted the pertinent syntax. That's why it's a bit weird. I'm more afraid of messing something up if I forget to copy and move the file, etc., etc. Seemed easier to put lots of references into which UDFs _should_ be in there yet not putting them in, etc., so that when I compile, no problems in not making copies of files, etc.