It is currently Wed Jun 19, 2013 12:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to change the tab height and width of a PanelGadget
PostPosted: Thu Feb 02, 2012 8:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 258
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:
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

_________________
Purebasic 5.11 | Fedora 18 (32-bit)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye