| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 895.1 |  | QUARK::LIONEL | B - L - Oh, I don't know! | Wed Jun 07 1989 13:29 | 6 | 
|  | It usually means that the logical name DECW$DISPLAY is not defined to
be a display that can be opened.  Try a SHOW DISPLAY command to see what is
defined.
			Steve
 | 
| 895.2 | Polyvoo Ultrix | LEDDEV::BRASS |  | Wed Jun 07 1989 13:50 | 3 | 
|  |     Do you know what that would be on an ultrix system??
    		Bob
 | 
| 895.3 | read those release notes | STAR::BRANDENBERG | Si vis pacem para bellum | Wed Jun 07 1989 13:58 | 6 | 
|  |     
    setenv DISPLAY vms_nodename_according_to_decnet::0
    
    after authorizing the ultrix system/user on the VMS node (see release
    notes).
 | 
| 895.4 |  | LEDDEV::BRASS |  | Thu Jun 08 1989 10:42 | 18 | 
|  |     I am not sure I get the concept of DISPLAY. I have read the notes
    in this file on it and it always seems to refer to more than one
    system or a system whos decwindows are not working. I am just running 
    a program that opens a window and asks for information, I want to be
    able to hit return to go to the next line, I am using accelorators to 
    do it and XtCallAcceptFocus routine, but I get an error message can't open
    display when I hit return. What display am I trying to open? When
    I am not sure what the display is set for because I do not know
    how to find out, and when I change the display (setenv DISPLAY..) and
    then try to run the program I cant run the program at all.(same
    error message). Can anyone fill me in on the display mystery or
    point me to the appropriate documentation, There is nothing helpful
    in Ultrix Worksystem Software, worksystem User, release notes. (it
    is the orange covered book, probably to old). Any help would be
    appreciated, thanks in advance.
    		Bob Brass
    
 | 
| 895.5 |  | AITG::DERAMO | Daniel V. {AITG,ZFC}:: D'Eramo | Thu Jun 08 1989 16:48 | 8 | 
|  | 	Is your program displaying a window first, and then after
	you hit return (while it has the input focus) you get the
	cant-open-display error?   That (seeing its window) would
	mean that your program had already opened a display.  Why
	is it then trying to open it (or another display) again?
	Dan
 | 
| 895.6 | clarification | LEDDEV::BRASS |  | Fri Jun 09 1989 09:49 | 38 | 
|  |     Re .5
    	Yes my program opens a window first. There are about five text
    lines that look like this;
    
    			name:|_________
    		     circuit:|_________
    		    password:|_________
    			     .
    			     .
    
    I enter name and then hit return and I want to go to the next line,
    I am trying to use accept_focus or a generic XtCallAcceptFocus to
    have the next line (circuit) accept the focus, then I will enter
    circuit and go to the next line, but when I hit return I get "Can't
    open display". My freind wrote a VMS version of this, with some help
    from Decwindows_programming notes file note #296. The details of
    the program are there. My problem is that I can't use XtCallAcceptFocus
    on my Ultrix machine running UWS 2.0 because as far as I can tell
    it does not exist. In VMS XtCallAcceptFocus is a call to
    XtAcceptFocusProc which is defined on both systems as 
    
        "typedef boolean (*XtAcceptFocusProc());" 
    In Intrinsic.h on a VMS system (but not on my ultrix system) there is
    	
    	"extern void XtCallAcceptFocus();"
    
    So in my program I try to define it as
     
    	"XtAcceptFocusProc XtCallAcceptFocus;"
    
    then I try to call it the same way: "XtCallAcceptFocus(widget, time)"
    I believe I am either declaring it wrong or calling it wrong but
    I need to know what "can't open display" means, or why it might
    be happening, to help figure it out.   
    			Thanks
    			Bob
 | 
| 895.7 | XtCallAcceptFocus is there in UWS | FLUME::dike |  | Fri Jun 09 1989 12:22 | 7 | 
|  | % nm /usr/lib/libdwt.a | grep ' T XtCallAcceptFocus'
00000070 T XtCallAcceptFocus
If it's not declared in a header, that may be a bug, but it doesn't mean it's 
not in the library.
				Jeff
 | 
| 895.8 |  | LEDDEV::BRASS |  | Fri Jun 09 1989 13:58 | 10 | 
|  |     I tried #nm /usr/lib/libdwt.a | grep ' T XtCallAcceptFocus'
    and there was nothing, I tried #nm /usr/lib/libdwt.a | grep '00000070'
    and I got other things. I also tried 
    #nm /usr/lib/*.a | grep ' T XtCallAcceptFocus' and many variations
    including #nm /usr/lib/libdwt.a | grep 'Focus' and there was no
    XtCallAcceptFocus to be found. I am running UWS 2.0, any other ideas?
    maybe an equivelent command? 
    			thanks 
    			Bob 
 | 
| 895.9 |  | FLUME::dike |  | Fri Jun 09 1989 15:39 | 4 | 
|  | I am running 2.1, so it looks like it was a late entry.  It looks like you will
have to call directly into the widget structure or install 2.1.
				Jeff
 |