Bar.SelectSubBarToButton
Description
- Shows the specified subbar aligned to the bar button pressed most recently.
Syntax
- Bar.SelectSubBarToButton("barname @subbarname")
Parameters
- barname
- (string) name of the bar containing the subbar to show
- subbarname
- (string) name of the subbar to show
Examples
- Bar.SelectSubBarToButton("Test @subbar1")
- Shows the subbar "subbar1" from bar "Test" aligned to the button just pressed.
Notes
- The subbar is shown aligned with the bottom of the pressed button.
- If the button pressed is on the same bar as subbarname, the bar is redraws itself at the location of the pressed button.
- If there are commands not within a subbar on the bar specified by barname, they are also shown when the subbar part of the bar is shown.
See Also
- To get the name of the currently selected subbar, use the built-in PowerPro function subbarname. See:
- PPSR > Built-in Functions > by Category > PowerPro > subbarname