[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

2377.0. "How to use callbacks that aren't there" by TOOLEY::B_WACKER () Wed Feb 28 1990 19:01

Could someone explain why/how UIL allows you to put a create callback 
on any widget (ala Decburger), even if the callback isn't defined for 
it??

Alternatively, does anyone know how to get a create callback on an
stext widget from from low level calls?
T.RTitleUserPersonal
Name
DateLines
2377.1UIL/DRM "magic"LEOVAX::TREGGIARIWed Feb 28 1990 20:396
    Create callbacks are a UIL/DRM concept.  The widgets are not doing
    the callback, DRM is.  The basic idea is that DRM creates the
    widget and then calls the callback.  To the application, it pretty
    much looks like any other callback, but the widget is not involved.
    
    Leo
2377.2Who needs create callbacks when using create routines?4GL::SCHOELLERWho's on first?Wed Feb 28 1990 21:037
In addition to what Leo said, create callbacks aren't necessary if you
are using the create routines.  The main purpose of the create callbacks
is to let the application know that a widget has been createed and what its
id was.  If you are using create routines, the application already knows
that.

Dick
2377.3the real questionTOOLEY::B_WACKERThu Mar 01 1990 16:2011
OK I got off on the create tangent trying to get a map callback in 
order to set focus to a widget on the first realization of it.

I know the style guide doesn't like it, but customers ask to do it a 
lot and I'm trying to make a clean example using XtCallAcceptFocus 
instead of the current XSetFocus and a dummy simple window to get an 
expose callback to do the set focus.

Any suggestions on a clean way to get focus set on initial invocation?

Bruce