#PB_Window_MaximizeGadget not working

Linux specific forum
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

#PB_Window_MaximizeGadget not working

Post by Baldrick »

I have just noticed #PB_Window_MaximizeGadget is not doing anything on my newly updated Ubuntu 10.xx, PB4.6. (Fails in the example window.pb even)
Am I doing something stupid, or is this actually a problem?
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: #PB_Window_MaximizeGadget not working

Post by idle »

dose it work with these flags?
#PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget |#PB_Window_SizeGadget
Windows 11, Manjaro, Raspberry Pi OS
Image
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Re: #PB_Window_MaximizeGadget not working

Post by Baldrick »

Adding #PB_Window_SizeGadget does make it work. Just another of those little anomalies between Windows & Linux I guess.
Thanks for that Idle. You would think I would have tried that already.....
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: #PB_Window_MaximizeGadget not working

Post by idle »

well you've tried it now!
It may well be a bug.
Windows 11, Manjaro, Raspberry Pi OS
Image
Baldrick
Addict
Addict
Posts: 860
Joined: Fri Jul 02, 2004 6:49 pm
Location: Australia

Re: #PB_Window_MaximizeGadget not working

Post by Baldrick »

Here is a couple of samples which I might get someone to confirm before I report as a bug. 1. will recreate the issue where the maximise button is not displayed, 2. with the added #PB_Window_SizeGadget flag will work as expected with the maximise button working correctly

1.

Code: Select all

If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
  Repeat 
    Ev=WaitWindowEvent(1)
    If Ev=#PB_Event_CloseWindow
      quit=1
    EndIf 
    
  Until Quit
  
EndIf 
2.

Code: Select all

If OpenWindow(0, 100, 200, 195, 260, "PureBasic Window", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget|#PB_Window_SizeGadget)
  Repeat 
    Ev=WaitWindowEvent(1)
    If Ev=#PB_Event_CloseWindow
      quit=1
    EndIf 
    
  Until Quit
  
EndIf 
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: #PB_Window_MaximizeGadget not working

Post by idle »

confirmed on ubuntu 11.10
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Re: #PB_Window_MaximizeGadget not working

Post by Guimauve »

confirmed on LinuxMint 12 x64 + Gnome-Shell

Best regards.
Guimauve
Post Reply