It is currently Fri Jan 18, 2019 11:32 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PB 5.70 QT - StickyWindow does not work
PostPosted: Wed Jan 09, 2019 11:55 pm 
Offline
User
User
User avatar

Joined: Wed Mar 15, 2006 1:47 pm
Posts: 54
Location: Munich
Code:
If OpenWindow(1, 0, 0, 322, 150, "Nonsticky Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  StickyWindow(1,1)
  Repeat     
  Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf


What should happen:
Windows stays on top

What does happen:
Window moves to background, requires two clicks to be brought to active state.
Does not stay on top

Video
There is a button to make windows stay on top, it should be highlighted if the state is successfully activated, like it is when I click the button in the video.
Focus stealing prevention is turned off.

System:
Kubuntu 18.04
Purebasic 5.70

StickyWindow() works with gtk subsystems.


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.70 QT - StickyWindow does not work
PostPosted: Thu Jan 10, 2019 9:18 am 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 893
Location: right here
What happens here is that running the code repeatedly without changes sometimes results in a sticky window and sometimes it doesn't.
PB570LTS x64, Ubuntu 18.04


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.70 QT - StickyWindow does not work
PostPosted: Thu Jan 10, 2019 2:16 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Dec 17, 2009 12:00 pm
Posts: 173
Location: Llangadog, Wales, UK
#NULL wrote:
What happens here is that running the code repeatedly without changes sometimes results in a sticky window and sometimes it doesn't.
Same here - appears random.

However, inserting Delay(500) between the OpenWindow and StickyWindow results in the window always being sticky (well - so far at least !!)

PB 5.70LTS x64 (qt subs), MX Linux 18

_________________
www.deeproot.co.uk


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.70 QT - StickyWindow does not work
PostPosted: Sun Jan 13, 2019 5:54 pm 
Offline
User
User
User avatar

Joined: Wed Mar 15, 2006 1:47 pm
Posts: 54
Location: Munich
On another PC (PC2) I do not get the behaviour that the windows move to the background.
and after a delay it sometimes works.

(On PC1 I tried: Delays, Delays with a window refresh loop, toggling off on, nothing worked)

Here a code which toggle the On Top state every second:
Code:
If OpenWindow(1, 0, 0, 322, 150, "Nonsticky Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  Repeat
    If ElapsedMilliseconds()-time>1000
      state!1
      StickyWindow(1,state)
      time=ElapsedMilliseconds()
    EndIf
  Until WaitWindowEvent(10) = #PB_Event_CloseWindow
EndIf


With gtk this works as expected on PC2. With qt.... it gets weird.
The window flashes on each StickyWindow() call, but only changes its sticky state if the mouse hovers on it.
If the mouse gets to close to the title bar, it moves up a bit on the next state change.
In the video I do not click on the window till I close it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye