| 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 |
I am trying to set the min width and min height of a shell widget
by using the DwtNminHeight and DwtNminWidth attributes.
The problem is that DwtNminHeight and DwtNminWidth are not defined.
Why is that so?
Here's what I've done:
XtSetArg( shell_list[0], DwtNminHeight, 300 );
XtSetArg( shell_list[1], DwtNminWidth, 300 );
XtSetArg( shell_list[2], DwtNx, 40 );
XtSetArg( shell_list[3], DwtNy, 40 );
...
top_widg = XtAppCreateShell( "test", "example",
applicationShellWidgetClass,
display, shell_list, 4 );
I get an undefined symbols DWTNMINHEIGHT and DWTMINWIDTH when I
link so I tried to replace DwtNminHeight with "minHeight" and
DwtNminWidth with "minWidth" as follows:
XtSetArg( shell_list[0], "minHeight", 300 );
XtSetArg( shell_list[1], "minWidth", 300 );
This links correctly but it doesn't work.
Any help will be appreciated.
Thanks.
Dan
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 2253.1 | If the Toolkit can't do it, use Xlib | SUBWAY::BERNEIS | Mon Feb 12 1990 14:23 | 19 | |
set_min (shell,x,y,width,height)
Widget shell;
int x,y,width,height;
{
XSizeHints xsh;
xsh.x = x;
xsh.y = y;
xsh.min_width = width;
xsh.min_height = height;
/*
* By using the USPosition flag, your window will come up at
* exact the specified position, even if you are using the uwm
* Windowmanager or mwm with free positioning of the windows
*/
xsh.flags = USPosition | PPosition | PMinSize;
XSetNormalHints (XtDisplay(shell),XtWindow(shell),&xsh);
}
| |||||
| 2253.2 | Thanks! It works now! | KAOU35::DLEROUX | Mon Feb 12 1990 15:02 | 1 | |
| 2253.3 | ... | GSRC::WEST | Variables don't, Constants aren't | Tue Feb 13 1990 00:34 | 11 |
RE: .0 Just so ya know...they are defined in SHELL.H and with Xt instead of Dwt. #define XtNminHeight ... ...but your work-around should have worked (??)... oh well .1 definitely has a point though... -=> Jim <=- | |||||