Why panel gadget needs a lot of margin space?

Mac OSX specific forum
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

Why panel gadget needs a lot of margin space?

Post 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
Fred
Administrator
Administrator
Posts: 16687
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Yes, it's OS specific, and I don't know how to reduce those.
Post Reply