Page 1 of 1

How to change the tab height and width of a PanelGadget

Posted: Thu Feb 02, 2012 8:46 pm
by uwekel
Hi,

today i found out how to enlarge the height or width of the PanelGadget tabs. Here is the very small code sample where i widen both values by 6 pixels:

Code: Select all

If OpenWindow(0, 0, 0, 400, 300, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  PanelGadget(0, 10, 0, 380, 290)
  AddGadgetItem(0, -1, "One")
  AddGadgetItem(0, -1, "Two")
  AddGadgetItem(0, -1, "Three")
  gtk_notebook_set_tab_hborder_(GadgetID(0), 6)
  gtk_notebook_set_tab_vborder_(GadgetID(0), 6)
  Repeat
  Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
And here is a picture how it look like:
Image

Best regards
Uwe