[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

53.0. "Changing focus from a callback" by INFACT::DATZMAN (Indianapolis Field Applications Center) Fri Jan 27 1989 14:29

    Is there a was to make a window come into focus into focus from
    a callback?  I looked at the xtcallacceptfocus routine but it
    is C only.  I need to do this using UIL and PL/I.
    
    Any help is much appreciated.
    
    Dick

T.RTitleUserPersonal
Name
DateLines
53.1Doc errorLEOVAX::TREGGIARIFri Jan 27 1989 15:226
    That's a documentation error.  There is an XT$CALL_ACCEPT_FOCUS
    routine.  It takes a Widget by reference and an X Time by reference.
    
    Leo
    

53.2XT$CALL_ACCEPT_FOCUS ?INFACT::DATZMANIndianapolis Field Applications CenterWed Feb 01 1989 08:3210
    I searched all of the DECW*.PLI files in sys$library but did not
    see a XT$CALL_ACCEPT_FOCUS declaration.  I did see a 
    dcl dwt$accept_focus_proc pointer based; declaration.
    
    Where might I find what is meant by an X time?  What value would
    one use if one wanted the new window to take focus after the callback
    had completed?   Thanks.
    
    Dick

53.3LEOVAX::TREGGIARIWed Feb 01 1989 11:1418
>   I searched all of the DECW*.PLI files in sys$library but did not
>    see a XT$CALL_ACCEPT_FOCUS declaration.  I did see a 
>    dcl dwt$accept_focus_proc pointer based; declaration.
 
This was an intrinsics procedure added very late in the game...
It's in the code, but I guess it didn't make the documentation or the 
language definition files.
   
>    Where might I find what is meant by an X time?  What value would
>    one use if one wanted the new window to take focus after the callback
>    had completed?   Thanks.
 
An X time is generated by the server.  It comes back in most events, which
is where you need to get it from.  It's defined in decw$include:x.h "Time".
The various event data structures are defined in decw$include:xlib.h.

Leo

53.4Alternative to C??INFACT::DATZMANIndianapolis Field Applications CenterTue Feb 07 1989 14:155
    It there an alternative way?  My customer is trying to do this using
    PL/I, not C.
    
    Dick

53.5do it yourself, until it's on the kitPSW::WINALSKIPaul S. WinalskiTue Feb 07 1989 14:228
RE: .4

Of course there's an alternative way.  Using the .h file as a guide, write
up a PL/I version of the data structure and routine declarations and include
them in your code.

--PSW

53.6which eventINFACT::DATZMANIndianapolis Field Applications CenterTue Feb 07 1989 15:225
    Ok, I'm game.  What event should I use to cause another widget to
    receive input focus? XFocusInEvent?
    
    Dick