07-06-2007, 03:47 AM
Hi All,
Couldn't seem to find this in the help files.
Thanks,
Stuart
Couldn't seem to find this in the help files.
Thanks,
Stuart
Can a menu/toolbar item's text-title be a string variable?
|
07-06-2007, 03:47 AM
Hi All,
Couldn't seem to find this in the help files. Thanks, Stuart
07-06-2007, 07:24 AM
Normally not, but you can use function DynamicMenu or DynamicToolbar to create menu/tb at run time, with variables. Using templates simplifies this.
Example Menu Menu17 Macro str m1="Macro1" Menu17 is used as template. %s are replaced with variables.
07-06-2007, 02:41 PM
As usual.
Thanks a million, Stuart
07-06-2007, 02:55 PM
Trying to do something like this...
Toolbar stringvariable :mac "whatever" Is that possible. It would be a dynamically changing thing set in the interval from the last time the the toolbar macro was run. Is that possible? Stuart
07-06-2007, 03:23 PM
07-06-2007, 05:39 PM
That's really cool though.
All I am trying to do is have the "notename" text of the ShowNote function be a string variable when I put my string name in for "notename", it works but it creates a brand new toolbar in the user section with default settings for toolbar (location, shrinksize, etc) and creates an everexpanding list of notes. Two questions, is there a way within a maacro to delete the notes and is there a way to set the parameters ahead of time for the note generated by ShowNote Thanks again, Stuart
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. 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])
07-06-2007, 07:49 PM
absolutely phenomenal!
Stuart |
« Next Oldest | Next Newest »
|