ContainerGadget issue
Posted: Fri Dec 10, 2010 8:53 pm
If I create a borderless ContainerGadget inside a ContainerGadget with the same size at 0/0.
On Windows it will completely cover the parent container which is what I need.
On Linux (Ubutu) there seems to be a inner frame so it appears at 1/1 or 2/2 instead of 0/0.
How can I set this frame to '0' or at least get the size of the frame
AND
How can I get the size of the MainWindow border?
As you can see, the visible area of the Linux window is not 200x200. It is smaller!
Does someone know the gtk_... functions to get this Linux metrics

On Windows it will completely cover the parent container which is what I need.
On Linux (Ubutu) there seems to be a inner frame so it appears at 1/1 or 2/2 instead of 0/0.
How can I set this frame to '0' or at least get the size of the frame

AND
How can I get the size of the MainWindow border?
As you can see, the visible area of the Linux window is not 200x200. It is smaller!

Does someone know the gtk_... functions to get this Linux metrics



Code: Select all
Procedure InsertContainer(GadgetNo.i=0)
Protected Gadget
Gadget = ContainerGadget(#PB_Any, 0, 0, 200, 200, #PB_Container_BorderLess)
SetGadgetColor(Gadget, #PB_Gadget_BackColor, RGB(Random($FF),Random($FF),Random($FF)))
If GadgetNo<40
GadgetNo+1
InsertContainer(GadgetNo)
EndIf
CloseGadgetList()
EndProcedure
If OpenWindow(0, 0, 0, 200, 200, "ContainerGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
InsertContainer()
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf