Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: curtis@Starbase.NeoSoft.COM (Curtis Keller)
Subject: Removing decorations in OSF 2.0 Motif 1.2.x
Date: 25 May 1994 13:35:29 -0500	[thread overview]
Message-ID: <2s05ph$3t@Starbase.NeoSoft.COM> (raw)


 Formerly, under OSF/1 V1.3 I was able to remove decorations 
 successfully.
 
 However, under OSF/1 V2.0; using the same technique,
 the following are not removed:
 
 the title bar, menu, minimize and maximize buttons.
 
 Is there anyway around this?
 
 Here, is what I'm currently doing:
 
 
 
 ...
 
     Widget      popup;
     Arg         args[10];
     int         i;
     MwmHints 	mwm_set_hints;
 
 
     mwm_set_hints.flags = MWM_HINTS_DECORATIONS;
     mwm_set_hints.decorations = MWM_DECOR_ALL | 
                                 MWM_DECOR_RESIZEH |
                                 MWM_DECOR_MENU | 
                                 MWM_DECOR_BORDER |
                                 MWM_DECOR_TITLE | 
                                 MWM_DECOR_MINIMIZE |
                                 MWM_DECOR_MAXIMIZE;
     i = 0;
     XtSetArg( args[i], XmNmwmDecorations, MWM_DECOR_ALL | 
                            MWM_DECOR_RESIZEH | MWM_DECOR_MENU | 
                            MWM_DECOR_BORDER | MWM_DECOR_TITLE | 
                            MWM_DECOR_MINIMIZE | MWM_DECOR_MAXIMIZE); i++;
     XtSetValues( popup, args, i);
 
     XtRealizeWidget( popup );
  
     XChangeProperty( XtDisplay(popup),
                      XtWindow(popup),
                      motif_wm_hints,
                      motif_wm_hints,
                      32,   
                      PropModeReplace,
                      (unsigned char *)&mwm_set_hints,
                      sizeof(MwmHints)/sizeof(int));
 
      XtPopup(popup, XtGrabNone);
 
 ...
 
 
 
Curtis Keller 713-953-8309    curtis@kinesix.com  curtis@neosoft.com
Kinesix, 9800 Richmond Ave, Suite 750, Houston, Texas 77042-4122
char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-- 
Curtis Keller 713-953-8309 curtis@neosoft.com curtis@kinesix.com

char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} 


                 reply	other threads:[~1994-05-25 18:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox