It is currently Tue Jul 23, 2019 12:19 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Having trouble with GetWindowState and Maximize
PostPosted: Sun Dec 02, 2018 1:23 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Nov 25, 2013 5:38 am
Posts: 250
Location: Australia
I'm opening a window as maximized and when I use GetWindowState() it's not registering that it's maximised. This happens the same if I'm in an application and switching between normal and maximised, it always shows normal. Am I doing something wrong? It works in Windows but not Linux.

Code:
OpenWindow(0, 100, 100, 640, 480, "Test", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_Maximize )

If GetWindowState(0) = #PB_Window_Maximize
  Debug "Registers as maximised"
Else
  Debug "Does not register as maximised"
EndIf

Repeat
  Event = WaitWindowEvent(10)
  Select Event
    Case #PB_Event_CloseWindow
      Quit = 1
  EndSelect
Until Quit = 1


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


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