[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

2030.0. "Want No resize on dialog box widget" by TOWNS::RUFFIEUX () Thu Jan 11 1990 12:30


	I am trying to create a dialog box that can't be resized. My UIL code
	is as follows:

		object
   		   window1_main : dialog_box
    		   {
        		arguments
        		{
            		    x = 85;
            		    y = 345;
            		    height = 207;
            		    width = 740;
            		    resize = DwtResizeFixed;
        		};
		    };


	Also, in my C code I have the following:

        XtSetArg(arglist[0], XtNallowShellResize, FALSE) ;
        XtSetArg(arglist[1], DwtNx,85);
        XtSetArg(arglist[2], DwtNy,345);
        XtSetArg(arglist[3], DwtNresize,0);
        XtSetValues (toplevel, arglist, 4) ;



	The dialog box is the toplevel widget in my application.  I would
	appreciate any responses.


	Chris	
T.RTitleUserPersonal
Name
DateLines
2030.1DwtNnoResizeRTL::TREGGIARIWed Jan 17 1990 14:027
    DwtResizeFixed and XtNallowShellResize prevent the *application*
    from changing the size, but not the user.  If you want the XUI
    window manager to make the resize button inactive, set DwtNnoResize
    to TRUE on the toplevel shell widget (i.e. NOT the dialog box,
    unless it's a *popup* dialog box, which it isn't in your example).
    
    Leo
2030.2works fineTOWNS::RUFFIEUXThu Jan 18 1990 13:034
    
    re: .1
    
    	Thanks .  It works fine.