[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

2253.0. "Where's DwtNminHeight" by KAOU35::DLEROUX () Mon Feb 12 1990 11:41

    
    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.RTitleUserPersonal
Name
DateLines
2253.1If the Toolkit can't do it, use XlibSUBWAY::BERNEISMon Feb 12 1990 14:2319
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.2Thanks! It works now!KAOU35::DLEROUXMon Feb 12 1990 15:021
    
2253.3...GSRC::WESTVariables don't, Constants aren'tTue Feb 13 1990 00:3411
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 <=-