Page 1 of 1

toolbar() add new parameter to recognize toolbar set 2-4

Posted: 23 Feb 2022 12:28
by klownboy
Hey Don with the new capability to have and additionsl cycle toolbars, it would seem to make sense to provide the capability of both obtaining the toolbar items of these toolbars as well as saving the new toolbar.

Code: Select all

toolbar([buttons], [size], [toolbar set #])
The toolbar set # could simply be provided as a number or Toolbar1, Toolbar2, toolbar3, toolbar4. If toolbar set # is provided the toolbar is saved or read from it. If it isn't provided or the number is 1, then toolbar uses the original set #1, Toolbar.
That would allow use to do something like: toolbar(readfile("toolbar_name.txt", ,'Toolbar3'));
And, would work nicely with getting toolbar information, $Toolbar3 = getkey("Toolbar3", "General", $tempINI);
Thanks.