model_server/gala/src/view.cxx
// FindItem - Returns a pointer to the item matching the tag or NULL.
Returns a pointer to the item matching the tag or NULL.
Returns a pointer to the item matching the tag or NULL .
vdialogItem* View::FindItem(const vchar* tag)
{
    vdialogItem * result;
    const vname * name = vnameInternGlobal(tag);
    if (myPane)
        result = myPane->FindItem(name);
    if (!result && ChildView) 
        for (View* v = ChildView; v && !result; v = v->RightView)
            result = v->myPane->FindItem(name);
    if (!result && myPane && myPane->childViewTree_)
        result = myPane->childViewTree_->FindItem(tag);
    if (!result && myPane)
        result = find_item_recurs(myPane->GetItemList(), name);
    return (result);
}
vdialogItem * View :: FindItem ( const vchar * tag ) { vdialogItem * result ; const vname * name = vnameInternGlobal ( tag ) ; if ( myPane ) result = myPane -> FindItem ( name ) ; if ( ! result && ChildView ) for ( View * v = ChildView ; v && ! result ; v = v -> RightView ) result = v -> myPane -> FindItem ( name ) ; if ( ! result && myPane && myPane -> childViewTree_ ) result = myPane -> childViewTree_ -> FindItem ( tag ) ; if ( ! result && myPane ) result = find_item_recurs ( myPane -> GetItemList ( ) , name ) ; return ( result ) ; }
FindItem - Returns a pointer to the item matching the tag or NULL.
FindItem - Returns a pointer to the item matching the tag or NULL .
// Convert tag into a  valid  tag name. // First look in the view's Pane. // If still not found, check the view's children. // If still not found, check the view's Pane's children. // Finally, check the view's Pane's ItemList.