! Examples of customizing xmh with resource specifications. ! These can be copied to your private X resource file or to ! a private Xmh application defaults file. ! To create command buttons in the middle of the main window: Xmh*CommandButtonCount: 8 Xmh*commandBox.button1.label: inc Xmh*commandBox.button1.translations: #override\ ,: XmhIncorporateNewMail() unset() Xmh*commandBox.button2.label: compose Xmh*commandBox.button2.translations: #override\ ,: XmhComposeMessage() unset() Xmh*commandBox.button3.label: next Xmh*commandBox.button3.translations: #override\ ,: XmhViewNextMessage() unset() Xmh*commandBox.button4.label: prev Xmh*commandBox.button4.translations: #override\ ,: XmhViewPreviousMessage() unset() Xmh*commandBox.button5.label: commit Xmh*commandBox.button5.translations: #override\ ,: XmhCommitChanges() unset() Xmh*commandBox.button6.label: delete Xmh*commandBox.button6.translations: #override\ ,: XmhMarkDelete() unset() Xmh*commandBox.button7.label: move Xmh*commandBox.button7.translations: #override\ ,: XmhMarkMove() unset() Xmh*commandBox.button8.label: reply to viewed msg Xmh*commandBox.button8.translations: #override\ ,: XmhViewReply() unset() ! To use popup menus on the title bars of the main window, ! have them popup with the pointer over the previously selected item, ! and not be clipped by the screen boundary: Xmh*stickyMenu: True Xmh*messageMenu.MenuOnScreen: True Xmh*folderTitlebar.translations: #override\n\ : XawPositionSimpleMenu(folderMenu)MenuPopup(folderMenu)\n Xmh*tocTitlebar.translations: #override\n\ : XawPositionSimpleMenu(messageMenu)MenuPopup(messageMenu)\n\ : XawPositionSimpleMenu(tocMenu)MenuPopup(tocMenu)\n Xmh.Paned.viewTitlebar.translations: #override\n\ : XawPositionSimpleMenu(sequenceMenu)MenuPopup(sequenceMenu)\n\ : XawPositionSimpleMenu(viewMenu)MenuPopup(viewMenu)\n ! To redefine the accelerator bindings to exclude modifier keys, ! and add a translation for Compose Message: Xmh*tocMenu.accelerators: #override\n\ !:I: XmhIncorporateNewMail()\n\ !:C: XmhCommitChanges()\n\ !:R: XmhForceRescan()\n\ !:P: XmhPackFolder()\n\ !:S: XmhSortFolder()\n Xmh*messageMenu.accelerators: #override\n\ !:M: XmhComposeMessage()\n\ !space: XmhViewNextMessage()\n\ !:c: XmhMarkCopy()\n\ !:d: XmhMarkDelete()\n\ !:f: XmhForward()\n\ !:m: XmhMarkMove()\n\ !:n: XmhViewNextMessage()\n\ !:p: XmhViewPreviousMessage()\n\ !:r: XmhReply()\n\ !:u: XmhUnmark()\n ! Here is an example of some miscellaneous accelerators: ! ("clients/xmh" is a subfolder; it must be existing.) Xmh*toc.accelerators: #override\n\ F1: XmhOpenFolder(inbox)XmhOpenSequence(all)\n\ F2: XmhOpenFolder(drafts)\n\ F3: XmhOpenFolder(clients/xmh)\n\ F4: XmhViewInNewWindow()\n\ F5: XmhPickMessages()\n ! Define Meta-S in the Compose window to do a send and close. Xmh*comp.translations: #override\n\ !:MetaS: XmhSend()XmhCloseView()