Page 1 of 1
set tab height?
Posted: Thu Oct 19, 2006 4:06 am
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.
Posted: Thu Oct 19, 2006 4:37 am
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
Posted: Thu Oct 19, 2006 4:46 am
by mskuma
Thank you very much.
Re: set tab height?
Posted: Tue Apr 18, 2017 7:01 pm
by IdeasVacuum
Is there a cross-platform way to increase tab height?