home *** CD-ROM | disk | FTP | other *** search
- Abbrevbutton()
- {
- MENUITEMS="{Restart}, {Cancel}, {Abort}"
-
- cps POPUP popupWindowShell popupWindowShell $PANE \\\n
- title:"WkshClass: AbbreviatedMenuButton"
-
- acb $POPUP popdownCallback "pd $POPUP"
-
- cps WINDOW popup popupWindowShell $POPUP \\\n
- title:"AbbreviatedButton Window"
-
- cmw CAPTION caption caption $POPUP_UCA \\\n
- label:"AbbreviatedButton (Window):" \\\n
- font:OlDefaultBoldFont
-
- cmw ABW abbreviatedButton abbreviatedButton $CAPTION \\\n
- buttonType:windowBtn \\\n
- popupWidget:$WINDOW
-
- cps MENU menu popupMenuShell $POPUP
-
- cmw BUTTONS buttons flatButtons $MENU \\\n
- numItems:3 \\\n
- numItemFields:1 \\\n
- itemFields:'{label}' \\\n
- items:"${MENUITEMS}"
-
- cmw CAPTION2 caption caption $POPUP_UCA \\\n
- label:"AbbreviatedButton (Menu):" \\\n
- font:OlDefaultBoldFont
-
- cmw ABWC abbreviatedButton abbreviatedButton $CAPTION2 \\\n
- popupWidget:$MENU
-
- cmw OK Ok flatButtons $POPUP_LCA \\\n
- numItems:1 \\\n
- numItemFields:1 \\\n
- itemFields:'{label}' \\\n
- items:'{Ok}'
-
- sv $OK selectProc:"PopdownCB $POPUP"
-
- orh $POPUP "AbbreviatedButton Source" -f `pwd`/Abbrevbutton
-
- pu $POPUP GrabNone
- }
-