SimpleMenu.cpp
/*      Function Name: GetMenuHeight
 *      Description: Sets the length of the widest entry in pixels.
 *      Arguments: w - the simple menu widget.
 *      Returns: width of menu.
 */
Function Name: GetMenuHeight
Description: Sets the length of the widest entry in pixels.
Arguments: w - the simple menu widget.
Returns: width of menu.
Function Name : GetMenuHeight Description : Sets the length of the widest entry in pixels . Arguments : w - the simple menu widget . Returns : width of menu .
static Dimension
GetMenuHeight(Widget w)
{
    SimpleMenuWidget smw = (SimpleMenuWidget) w;
    SmeObject * entry;
    Dimension height;
    if (smw->simple_menu.menu_height)
	return(smw->core.height);
    height = smw->simple_menu.top_margin + smw->simple_menu.bottom_margin;
    if (smw->simple_menu.row_height == 0) {
	ForAllChildren(smw, entry) 
	    if (XtIsManaged ((Widget) *entry)) 
		height += (*entry)->rectangle.height;
    } else 
	height += smw->simple_menu.row_height * smw->composite.num_children;
    return(height);
}
static Dimension GetMenuHeight ( Widget w ) { SimpleMenuWidget smw = ( SimpleMenuWidget ) w ; SmeObject * entry ; Dimension height ; if ( smw -> simple_menu . menu_height ) return ( smw -> core . height ) ; height = smw -> simple_menu . top_margin + smw -> simple_menu . bottom_margin ; if ( smw -> simple_menu . row_height == 0 ) { ForAllChildren ( smw , entry ) if ( XtIsManaged ( ( Widget ) * entry ) ) height += ( * entry ) -> rectangle . height ; } else height += smw -> simple_menu . row_height * smw -> composite . num_children ; return ( height ) ; }
Function Name: GetMenuHeight
      Description: Sets the length of the widest entry in pixels.
Function Name : GetMenuHeight Description : Sets the length of the widest entry in pixels .