[comp.windows.open-look] xmh with Openwindows 2.0??

smart@manta.mel.dit.csiro.au (Robert Smart) (02/18/91)

When I use Xmh with Openwindows 2.0 on a Sun my user-defined buttons
(based on the example in the xmh distribution) don't work. The buttons
are there and they change when the mouse enters them but the actions
aren't carried out.

If you know the answer please post it because I know that others are
also interested from responses I got when I mentioned this problem
in other less suitable newsgroups.

Bob Smart <smart@mel.dit.csiro.au>

P.S. here is my .Xdefaults file

OpenWindows.SetInput:   followmouse
OpenWindows.WorkspaceColor:     #40a0c0
OpenWindows.IconLocation:       bottom
OpenWindows.FocusLenience:      true

Xmh*CommandButtonCount:         7
Xmh*commandBox.button1.label:   Inc
Xmh*commandBox.button1.translations: #override\
        <Btn1Down>,<Btn1Up>: XmhIncorporateNewMail()unset()
Xmh*commandBox.button2.label:   Next
Xmh*commandBox.button2.translations: #override\
        <Btn1Down>,<Btn1Up>: XmhViewNextMessage()unset()
Xmh*commandBox.button3.label:   Prev
Xmh*commandBox.button3.translations: #override\
        <Btn1Down>,<Btn1Up>: XmhViewPreviousMessage()unset()
Xmh*commandBox.button4.label:   Delete
Xmh*commandBox.button4.translations: #override\
        <Btn1Down>,<Btn1Up>: XmhMarkDelete()unset()
Xmh*commandBox.button5.label:   Move
Xmh*commandBox.button5.translations: #override\
        <Btn1Down>,<Btn1Up>: XmhMarkMove()unset()
Xmh*commandBox.button6.label:   Commit
Xmh*commandBox.button6.translations: #override\
        <Btn1Down>,<Btn1Up>: XmhCommitChanges()unset()
Xmh*commandBox.button7.label:   Reply
Xmh*commandBox.button7.translations: #override\
        <Btn1Down>,<Btn1Up>: XmhViewReply()unset()