[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

3219.0. "Motif resources" by AIRBAG::SWATKO (Electrons are cheap. Trees are not.) Thu Aug 16 1990 18:18

I'm trying to make a popup window on the root window using the standard
Motif resources, but it's not working.  From what it says in the Motif MWM
manual, this should work.  Any clues?

DECW$XDEFAULTS.DAT
Mwm*configFile:		sys$login:decw$mwm.rc


SYS$LOGIN:DECW$MWM.RC
Menu MyMenu
{
    "Applications"	f.title
    no-label	f.separator
    "DECterm"	f.exec "create/term/det"
}

Buttons	MyButtons
{
    <Button2Down>	root	f.menu "MyMenu"
}
T.RTitleUserPersonal
Name
DateLines
3219.1Probably lots of bugsSTAR::VATNEPeter Vatne, VMS DevelopmentThu Aug 16 1990 19:0712
I haven't been able to affect the Motif Window Manager settings either
through the DECW$XDEFAULTS.DAT file or the DECW$MWM.DAT file.  This may
be a bug.

The only way I've gotten Motif to recognize my own menus is to put them
in SYS$LOGIN:DECW$MWM_RC.DAT, and to always name the menu RootMenu,
and my buttons DefaultButtonBindings.

I'm not positive, but I think you may have to spell button 2 as <Btn2Down>.

Also, I believe that f.exec is not implemented on VMS.  The last time I
tried this, I hung the window manager.
3219.2<Btn2Down> fixed itAIRBAG::SWATKOElectrons are cheap. Trees are not.Thu Aug 16 1990 19:3013
That was the problem.  It should have been <Btn2Down>, not <Button2Down>.
It works now.  Put the resource 

Mwm*configFile:	sys$login:decw$mwm.rc  (or whatever filename)

near the top of the file to make it find your resource file.  It works for
me.

Now the problem is:

1. Any menu element "f.exec" causes an ACCVIO
2. I can't make a bitmap entry because MWM is always appending a "/" in
   front of the filename and VMS doesn't like that.
3219.3Look in SUBWAY::MOTIF conferenceBOMBE::MOOREEat or be eatenThu Aug 16 1990 20:292
    There is a patch listed in the MOTIF conference to enable f.exec for
    VMS.  I believe the other problem has been discussed there as well.