Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can a menu/toolbar item's text-title be a string variable?
#7
To change button text can be used this function.

Function ChangeQmToolbarButtonText
Code:
Copy      Help
;/
function $tbname button $text

;Changes QM toolbar button text.
;Returns 1 if successful, 0 if not.
;Note: The original text is restored when you change toolbar style through the right-click menu.


;tbname - toolbar name.
;button - 0-based line index in toolbar text.
;text - new text.



str sn=tbname
int h=win(sn.ucase "QM_toolbar"); if(!h) ret
h=id(9999 h)
TBBUTTONINFO ti.cbSize=sizeof(ti)
ti.dwMask=TBIF_TEXT
ti.pszText=text
ret SendMessage(h TB_SETBUTTONINFO button &ti)

You can create your own ShowNote2 function that calls ShowNote and ChangeQmToolbarButtonText.

Quote:is there a way within a maacro to delete the notes

Try newitem with flag 32.


Quote:is there a way to set the parameters ahead of time for the note generated by ShowNote

int ShowNote([~name] [~text] [hwndowner] [$template] [flags])


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)