Page 1 of 1

Why panel gadget needs a lot of margin space?

Posted: Tue Jul 12, 2016 7:51 pm
by Lebostein
Why the Mac OS panel gadget needs a huge (up to 10 pixel) margin? Is that OS specific?

Code: Select all

#dist = 10 ; frame width between window and panel
OpenWindow(0, 0, 0, 322, 220, "PanelGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
PanelGadget(0, #dist, #dist, WindowWidth(0) - #dist * 2, WindowHeight(0) - #dist * 2)
AddGadgetItem (0, -1, "Panel 1")
AddGadgetItem (0, -1, "Panel 2")
CloseGadgetList()
Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow
Windows:
Image

Mac OS:
Image

Re: Why panel gadget needs a lot of margin space?

Posted: Wed Jul 13, 2016 7:54 am
by Fred
Yes, it's OS specific, and I don't know how to reduce those.