set tab height?

Just starting out? Need help? Post your questions and find answers here.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

set tab height?

Post by mskuma »

I'm assigning 16x16 icons to panel tabs - I'm finding they look ok on Win2000 but on WinXP, the orange line that indicates the current tab is partially obscuring the top part of the icon. To overcome this, I was thinking to try and increase the tab height by a couple of pixels. I see it's possible to get the tab height using GetGadgetAttribute() & #PB_Panel_TabHeight but seems it's not possible to set the tab height using SetGadgetAttribute(). Has anyone coded a method for setting the tab height? Thanks.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Code: Select all

OpenWindow(0,0,0,320,240,"",$CF0001)
CreateGadgetList(WindowID(0))
PanelGadget(0,10,10,300,220)
AddGadgetItem(0,0,"Tab 0")
AddGadgetItem(0,1,"Tab 0")
AddGadgetItem(0,2,"Tab 0")
lparam.l
PokeW(@lparam,0)   ;width
PokeW(@lparam+2,40) ;height
SendMessage_(GadgetID(0),#TCM_SETITEMSIZE,0,lparam)
Repeat:Until WaitWindowEvent()=#WM_CLOSE
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Thank you very much.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: set tab height?

Post by IdeasVacuum »

Is there a cross-platform way to increase tab height?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply