[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2748.0. "How to get the widget_ids?" by KLEE::SCHMIDT (Christiane Schmidt, @KLE Germany) Fri May 11 1990 08:59

    One simple question:
    
    I define in UIL the main_widget with all its controls ...
    
    I open the UID-hierarchy with the routine DwtOpenHierarchy.
    
    Is there a way to find out the widget_ids of all the widgets
    in the opened hierarchy? I think with the routine DwtFetchWidget
    i can only fetch widgets, which do not hang in any hierarchy
    defined in UIL.
    
    I can get the widget_id by defining a callback_procedure. But
    i liked to get the id in another way.
    
    Any ideas?
    
    Thanks
    	Christiane
T.RTitleUserPersonal
Name
DateLines
2748.1XtNameToWidgetTLE::ZANZERKIAFri May 11 1990 10:246
    Using "create" callbacks is the better way of getting the widget id.
    Alternate is to use the function XtNameToWidget(top-level-widget,names)
    See the "XUI toolkit intrinsics manual (C bindings)" section 11.2
    "Utility functions"
    
    Robert
2748.2Look at DECburgerATLV5::DIAL_BFri May 11 1990 10:325
    The DECburger approach to this problem works pretty well.  Having a
    table with every widget ID your application uses is overkill sometimes,
    but the flexibility of easy access to any widget ID is worth it.
    
    Barry