Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Toolbar: Disable Equal buttons
#4
Found a way. Did't know that before, will add to QM in next release.

Function TbSetMaxButtonWidth
Code:
Copy      Help
;/
function hwndTb maxButtonWidth

;Set toolbar button max width when 'equal buttons' is unchecked.
;Note that checking/unchecking 'equal buttons' removes the button width limit.


;EXAMPLE
;TbSetMaxButtonWidth win("TOOLBAR28" "QM_toolbar") 100



int i h=id(9999 hwndTb)
TBBUTTONINFO t.cbSize=sizeof(t)
t.dwMask=TBIF_SIZE
for i 0 SendMessage(h TB_BUTTONCOUNT 0 0)
,SendMessage h TB_GETBUTTONINFO i &t
,if(t.cx<maxButtonWidth) continue
,t.cx=maxButtonWidth
,SendMessage h TB_SETBUTTONINFO i &t


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)