|
ActiveBar_select_menu 这个是选择菜单的某一项!
可以带有BOOLEAN
这个是调用WR自带的TSL函数
static function get_toolkit()
{
auto win;
auto hWnd;
if ( IGToolBars40 )
return DAB;
win = GUI_get_window();
win_get_info(win, "handle", hWnd);
if ( _atb_has_sheridan_bar(hWnd) == E_OK )
return SATB;
else
return DAB;
}
public function ActiveBar_select_menu(in BandTool, in EventsOnly)
{
if ( nargs() < 2 )
EventsOnly = FALSE;
switch ( get_toolkit() )
{
case SATB:
return satb_select_menu(BandTool, EventsOnly);
case DAB:
return dab_select_menu(BandTool, EventsOnly);
}
return E_NOT_FOUND;
} |
|