[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
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 |
2679.0. "Strange behaviour of DECwTermPort routine" by HAMOP::UWEH () Fri Apr 27 1990 16:12
Hi folks
We're trying to customize our file view or session manager menue
to offer a SET HOST 'node'. We want to use the procedures documented
in VMS 5.2 RELEASE NOTES Pg 4-19 + 4-20. Our system runs VMS 5.3 with
DECWindows 2.0 an we use VAX-C 3.1.
Now, we modified the program to use setup file in DECwTermPort routine.
It looks like :
status = DECwTermPort(display,"setup_file",0,device_name,
&device_length)
where setup_file is the complete file name of the resource file
containing entries
DECW$TERMINAL.title test
DECW$TERMINAL.iconName test .
The result of RUN CREATE_DECTERM show a new window with default decterm
title and iconName.
Using
status = DECwTermPort(display,0,
"DECW$TERMINAL.title test\n DECW$TERMINAL.iconName test\n"
,device_name,&device_length)
works fine.
A third approach was to pass the customize parameter by argument vector
instead of the variable display.
The DECwTermPort call now looks like
status = DECwTermPort(0,0,customize,device_name,&device_length)
where customize is defined as : customize = argv[1] instead of display.
Now we do a
MCR CREATE_DECTERM DECW$TERMINAL.iconName:test\n
and end up with a new window and default iconName.
A MCR CREATE_DECTERM DECW$TERMINAL.title:test\n
gives us a new pretty window with a title of "test".
What's going on here ?
We don't understand why the first approach fails, the second works and
the third partly works.
Any ideas ?
Uwe and Norbert
T.R | Title | User | Personal Name | Date | Lines |
---|
2679.1 | | HANNAH::MESSENGER | Bob Messenger | Sun Apr 29 1990 16:02 | 11 |
| Re:.0
I don't understand it either. All three versions should fail, because you left
off the colon in the resource definition.
DECW$TERMINAL.title: test
Other people have also reported problems using setup files. It's on the list
of problems to be investigated.
-- Bob
|