How to change the tab height and width of a PanelGadget

Linux specific forum
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

How to change the tab height and width of a PanelGadget

Post 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
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2