set tab height?
set tab height?
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.
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
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
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: set tab height?
Is there a cross-platform way to increase tab height?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.