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 |
Hi, I have a customer who is trying to position the shell widget of his application, at the moment it appears top left corner of the screen (he is using Pascal/UIL). I have read several notes concerning the use of DECW$XDEFAULTS.DAT but none specify or define the syntax used, consequently I've had no luck myself using them. Also, it is not documented and I've also heard rumblings that use of DECW$XDEFAULTS.DAT is unsupported. That being the case could the guy get round it by having a 'dummy' shell widget that perhaps could be made invisible - just a thought ! It'd bean idea if you could have a DECW$'appl_name'.DAT file enabling positioning of the shell widget for each application. Anybody got any thoughts about this, I'd like clear up alot of querys about this problem. Cheers for any input Rich
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1362.1 | PSW::WINALSKI | Careful with that VAX, Eugene | Mon Sep 04 1989 22:05 | 21 | |
The Toolkit seems to look for a file named DECW$USER_DEFAULTS:classname.DAT as a resource file, where "classname" is the string that you specified in the class_name parameter to XtInitialize(). Within this file you can put resource definitions. To set the x and y offsets for the main applicatio shell, you can put these lines in that file: classname.x: xoffset classname.y: yoffset where "xoffset" and "yoffset" are the pixel coordinates you wish the upper left corner of the application shell to have. Resource file names are case-sensitive. As you have heard, this is all unsupported on VMS. The other way to set the X and Y is to set the DwtNx and DwtNy attributes on the shell widget returned by XtInitialize() using XtSetValues(). Do this before you realize the widget. --PSW |