StickyWindow() only seems to work once

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Addict
Addict
Posts: 1053
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: StickyWindow() only seems to work once

Post by Caronte3D »

On my experience...

Program_1 makes her window sticky = Ok
Program_2 makes her window sticky = Ok

Now, if you need to make the program_1 sticky again, the command WindowSticky(#win,1) does nothing, in order to put the program_1 top most again, you *must* do StickyWindow(#win,0) then StickyWindow(#win,1), this way the program_1 window becomes the top most again.
User avatar
C87
Enthusiast
Enthusiast
Posts: 176
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: StickyWindow() only seems to work once

Post by C87 »

Modal Fixed :

I've given up on the StickyWindow()

In the opening screen, just prior to calling the 2nd window I set the opening screen - #WinNº1, to DisableWindow(#WinNº1, #True)
Just prior to when the 2nd opens the 3rd I set DiasableWindow(#WinNº2, #True)
Prior to when I close the 3rd I then set DisableWindow(#winNº2,#false) then close #WinNº3
Then repeat the same on the 2nd to return to the opening screen

I haven't bothered with the HideWindow() as I don't usually hide windows in other languages, so didn't see the point.


Many thanks PB_All for your views and assistance
If it's falling over......just remember the computer is never wrong!
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: StickyWindow() only seems to work once

Post by BarryG »

C87 wrote: Wed Jun 22, 2022 7:13 pmMany thanks PB_All for your views and assistance
LOL!
Post Reply