07-06-2007, 06:16 PM
To change button text can be used this function.
Function ChangeQmToolbarButtonText
You can create your own ShowNote2 function that calls ShowNote and ChangeQmToolbarButtonText.
Try newitem with flag 32.
int ShowNote([~name] [~text] [hwndowner] [$template] [flags])
Function ChangeQmToolbarButtonText
;/
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])
