[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

694.0. ""Using single activate routine different widgets apply button"" by JPS1::VONHALLE () Thu Apr 27 1989 12:38

    I wish to have an apply button associated with multiple widgets
    and would like to use the same apply activate routine. Within 
    that routine I would like to know in which widget this apply
    was called. For example is there a function like GetCurrentParent.
    

T.RTitleUserPersonal
Name
DateLines
694.1LEOVAX::TREGGIARIThu Apr 27 1989 13:554
    The first argument to all callback routines is the widget-id.
    
    Leo

694.2But isn't that the widget id of the label not the containing widget?IO::MCCARTNEYJames T. McCartney III - DTN 381-2244 ZK02-2/N24Fri Apr 28 1989 19:091
694.3LEOVAX::TREGGIARISat Apr 29 1989 10:016
    Yes.  It wasn't clear to me which widget id he wanted.  If he wants
    the parent, then he can call XtParent of the widget-id returned in
    the callback.
    
    Leo