[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

2415.0. "decterm and input focus" by POOL::CARDIMINO () Thu Mar 08 1990 22:53

I've seen references to this same question in the decterm notefile
but could not find an answer. I've posted this there and in other notesfiles.
Is there a customization that will cause the decterm to be created with input 
focus? If not, any suggestions on how to achieve the same thing? Determine the
window or widget id and setinput focus to it thru X or Xt? 

Thank You
/peterc
T.RTitleUserPersonal
Name
DateLines
2415.1No customization, hacks are possible though.SCAM::DIALFri Mar 09 1990 18:538
    I know of no customizations for Decterm to make it start up with input
    focus (it would be nice.)  You can accomplish it as you said by getting
    the window id and using set input focus, or send event (take focus
    event).  These things are possible, but not entirely straightforward. 
    Its easier to get into the habit of clicking in the window before
    typing.
    
    Barry
2415.2Would violate conventions, is a window manager issueOPHION::MIKEYMike YangFri Mar 09 1990 20:404
    This (having DECterm start up with input focus) is really not something
    DECterm can do without violating the ICCCM.  It is really a window
    manager issue.  The Motif window manager (mwm), for example, has an
    option to give input focus tonewly-created windows.
2415.3For ALL new windows you can. STKHLM::HOLMSki the trees - Kiss the beaversTue Mar 20 1990 06:4616
	Perhaps this can help you:

	If you create DECW$XDEFAULTS.DAT (sys$login) and put in

	wm*default.startupFocus: true

	This specifies whether new windows should be given focus when 
	they first appear on the screen. "true" means windows will be 
	given focus. "false" means they will not. Default is false.

	This is not supported but it works fine for me. 
	(VMS 5.3 & DECWINDOWS 2.0)


	Bengt - TSC Sweden
2415.4input focus works, but not title boxPOBOX::FEIGLEYesssss, I can do that, I can do thatWed Nov 14 1990 21:3914
    I have a login in command that does the following:
     create/term/wait/window=(icon="POBOX",title="POBOX Connection",...
    
    I wanted the title like of the window to display POBOX Connection. 
    When you invoke the window, it give you the copywrite notice.  When
    you click on the box, it gives you the title line.  I was hoping that
    input focus in -1 would simulate the "click". However, I open 3 decterm
    windows, each with a similar command to above (autostart), and
    althought they each go through input focus, none will display the
    appropriate title box until I manually click on them.
                       
    Any suggestions, 
    
    jff
2415.5No easy work-aroundHANNAH::BAYJim CNF ENTP PPASEL DECtermMon Nov 19 1990 14:1315
    This behavior is by design.  There are no simple work-arounds.
    
    There have been numerous complaints about this, so it may be changed at
    a future date.  Many applications come up this way, but DECterm seems
    to be special in that there tend to be numerous ones occupying the
    screen simultaneously, each with a dedicated (sub) function.  So, unlike
    other applications, there seems to be a real need to be able to easily
    identify them readily other than by examining thier contents, which is
    not true of other applications.
    
    Unfortunately, even if it is decided to make this change, it is
    unlikely that it will happen soon.
    
    Jim