[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

814.0. "Input focus from window manager?" by 21850::WEAVER (Laboratory Data Products/Science) Mon May 22 1989 15:33

    How does one setup an attached popup dialog box so that input focus
    can be gotten by clicking on the title bar.  I can get input focus
    when I click inside the box, but not on the title bar.
    
    						Thanks,
    						-Dave

T.RTitleUserPersonal
Name
DateLines
814.1More info...21850::WEAVERLaboratory Data Products/ScienceMon May 22 1989 15:355
    I should add that I have tried using XtSetValues and XtAddEventHandler
    with little success, using XtParent(widget) for the widget id.
    
    						-Dave

814.2DECWIN::KLEINMon May 22 1989 15:5410
One trick that I've resorted to on occasion for dialog boxes that are
particularly reluctant to take focus is to create a "dummy" SIMPLE_TEXT
widget, positioned at -100,-100, as a managed child of the dialog box.
SText seems to be able to encourage the dialog box to take focus when
all else fails.

I know this is a gross kludge, but it works...

-steve-

814.3Does that force the window manager to send an event?21850::WEAVERLaboratory Data Products/ScienceMon May 22 1989 17:3811
    Re: .2
    
    The title bar highlights, so I assume that the dialog box is getting
    input focus, I just can't figure out how to get the input focus
    event to my process.  I can get input focus just fine from the dialog
    box itself, I need to know how to get an event from the portion
    of the window that the window manager owns.
    
    						Thanks,
    						-Dave

814.4Events vs. Callbacks21850::WEAVERLaboratory Data Products/ScienceMon May 22 1989 18:245
    My problem was I was mixing callbacks with events.  I can get a
    callback for the dialog box, and an event for the title bar.
    
    						-Dave