model_server/gala/src/viewerMenu.cxx
/*
This method shows a menu item.  It uses GetPosition to determine its appropriate location and
then adds itself to the menubar
*/
This method shows a menu item.  It uses GetPosition to determine its appropriate location and
then adds itself to the menubar
This method shows a menu item . It uses GetPosition to determine its appropriate location and then adds itself to the menubar
void ViewerMenu::Show()
{
    int position;
    if (myMenuBar_ && hidden_) {
	myMenuBar_->AppendMenu(this);
	if (next_)
	    position = next_->GetPosition();
	else
	    position = LAST_ITEM;
	if (position != LAST_ITEM)
	    myMenuBar_->SetMenuIndex (this, position);
	hidden_ = vFALSE;
	if (!IsEnabled())
	    Enable();
    }
}
void ViewerMenu :: Show ( ) { int position ; if ( myMenuBar_ && hidden_ ) { myMenuBar_ -> AppendMenu ( this ) ; if ( next_ ) position = next_ -> GetPosition ( ) ; else position = LAST_ITEM ; if ( position != LAST_ITEM ) myMenuBar_ -> SetMenuIndex ( this , position ) ; hidden_ = vFALSE ; if ( ! IsEnabled ( ) ) Enable ( ) ; } }
This method shows a menu item.
This method shows a menu item .