Page 1 of 1

taskbar at top, WindowY bug? when use #PB_Window_BorderLess|

Posted: Fri Nov 03, 2017 3:07 am
by gurj
taskbar at top, WindowY bug? when use #PB_Window_BorderLess|#PB_Window_Maximize

Code: Select all

OpenWindow(0,0,0,800,500,"",#PB_Window_BorderLess|#PB_Window_Maximize)
ButtonGadget(0, 0, 0,200, 20, "Button 0")
x=WindowX(0):y=WindowY(0)
Debug y
Repeat:ev=WaitWindowEvent():Select ev

  Case #PB_Event_CloseWindow:Break
EndSelect:ForEver
End

Re: taskbar at top, WindowY bug? when use #PB_Window_BorderL

Posted: Fri Nov 03, 2017 6:15 am
by Thunder93
I don't see the problem? If the Taskbar is located at the bottom of the screen, the screen Height isn't cut short because of the Taskbar. Regardless where the Taskbar resides, this doesn't subtract from screen dimensions. :wink:

Re: taskbar at top, WindowY bug? when use #PB_Window_BorderL

Posted: Fri Nov 03, 2017 7:28 am
by gurj
but other exe subtract Taskbar height,when use Maximize.

Re: taskbar at top, WindowY bug? when use #PB_Window_BorderL

Posted: Sat Nov 04, 2017 4:00 am
by gurj
ok, best too use #PB_Window_MaximizeGadget,when use #PB_Window_Maximize

Code: Select all

OpenWindow(0,0,70,800,500,"",#PB_Window_MaximizeGadget|#PB_Window_Maximize)
ButtonGadget(0, 0, 0,200, 20, "Button 0")

Repeat:ev=WaitWindowEvent():Select ev

  Case #PB_Event_CloseWindow:Break
EndSelect:ForEver
End