ARPUS/ce, Version 2.6.2 (03/10/05) (SCCS 1.4) _______________________________________________________________________________ Concept: Adding ce to HP VUE's control bar. DESCRIPTION: Here is the technique to put ceterm and ce in the HP VUE control bar. The end result of this is that if you click the button, you get a ceterm and if you drag and drop from the file manager, you go into Ce on that file. ####################### FOR HP/UX Version 9.01 ####################### ******** Step 1 ******** If you want to do this globally, edit the file /usr/vue/config/sys.vuewmrc. Generally only system administrators have rights to edit that file directly. If you want to do it locally, edit $HOME/.vue/vuewmrc. If that file does not exist, copy /usr/vue/config/sys.vuewmrc. to it. In the file, you will find a sections with the comments: # Regular Session: Top Row and # Regular Session: Bottom Row Following each comment will be a "BOX" directive with a series of CONTROL directives. If you want the ce icon to appear in the top row of the control bar, add the following line to the "BOX Top" block of the panel description: CONTROL Ceterm If you want the ce icon to appear in the bottom row of the control bar, add the above line to the "BOX Bottom" block of the panel description. Following the BOX directives is a series of control descriptions. Add the following control description: # Control description: Ceterm # CONTROL Ceterm { TYPE button IMAGE Ce DROP_ACTION f.action Ce PUSH_ACTION f.exec "$CEBINDIR/ceterm" HELP_TOPIC FPTextEdit } ******** Step 2 ******** In the directory /usr/vue/icons/Color create the file Ce.l.pm. Cut the following text and place it in this file. This is the color bitmap of ceterm picture. You can use this file or make up your own. They are referenced in the vuewmrc file above. If you do not have sufficient rights to add files to that directory, consult your system administrator, who will gladly add them for you. Bitmap file "/usr/vue/icons/Color/Ce.l.pm": /* XPM */ static char * Ce3 [] = { /* width height ncolors cpp [x_hot y_hot] */ "52 22 6 1 0 0", /* colors */ " s none m none c none", ". s iconGray1 m white c #e1e1e1e1e1e1", "X s iconGray7 m black c #4b4b4b4b4b4b", "o s iconColor3 m black c red", "O s iconColor1 m black c black", "+ s iconColor6 m white c yellow", /* pixels */ " ", " ............X ", " .oooooooooooo.O ", " .oo++++oooooo.O ", " .oo+ooooooooo.O ", " .oo+ooooo++oo.O ", " .oo+oooo+oo+o.O ", " .oo+oooo++++o.O ", " .oo+oooo+oooo.O ", " .oo++++oo+++o.O ", " .oooooooooooo.O ", " ............O ", " OOOOOOOOOO ", " XXXXXXXXXXXXXXXXXXXX ", " .....................O ", " ..X..X..X..X..X..X..X.O ", " ..X..X..X..X..X..X..X...O ", " ..X..X..X..X..X..X..X..X..O ", " ..........................O ", " OOOOOOOOOOOOOOOOOOOOOOOOOOO ", " ", " "}; In the directory /usr/vue/icons/ create the file Ce.l.bm. Cut the following text and place it in this file. This is the black and white bitmap of the ceterm picture. You can use this file or make up your own. (You can use /usr/bin/X11/bitmap to edit this bitmap.) They are referenced in the vuewmrc file above. If you do not have sufficient rights to add files to that directory, consult your system administrator. Bitmap file "/usr/vue/icons/Ce.l.bm": #define Ce3.l.bm_width 52 #define Ce3.l.bm_height 22 #define Ce3.l.bm_x_hot 0 #define Ce3.l.bm_y_hot 0 static char Ce3.l.bm_bits[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0x0f, 0x00, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xf7, 0xff, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0x37, 0xfc, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0xb7, 0xff, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0xb7, 0xcf, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0xb7, 0xb7, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0xb7, 0x87, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0xb7, 0xf7, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0x37, 0x8c, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0xf7, 0xff, 0xfe, 0xff, 0x0f, 0xff, 0xff, 0x0f, 0x00, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0x00, 0x00, 0xe0, 0xff, 0x0f, 0xff, 0x7f, 0x92, 0x24, 0xe9, 0xff, 0x0f, 0xff, 0x3f, 0x49, 0x92, 0xc4, 0xff, 0x0f, 0xff, 0x9f, 0x24, 0x49, 0x92, 0xff, 0x0f, 0xff, 0x1f, 0x00, 0x00, 0x80, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f}; ******** Step 3 ******** In the directory /usr/vue/config/types create the file Ce.vf and insert The following data: ACTION Ce L-ICON /usr/vue/icons/Ce.l.bm S-ICON /usr/vue/icons/Ce.l.bm DESCRIPTION ce editor TYPE COMMAND EXEC-STRING $CEBINDIR/ce %(File)Arg_1% WINDOW-TYPE NO-STDIO END When the above steps have been completed, restart VUE for the changes to take effect. ####################### FOR HP/UX Version 8.07 ####################### ******** Step 1 ******** If you want to do this globally, edit the file /usr/lib/X11/vue/Vuewm/sys.vuewmrc. Generally only system administrators have rights to edit that file directly. If you want to do it locally, edit $HOME/.vue/vuewmrc. If that file does not exist, copy /usr/lib/X11/vue/Vuewm/sys.vuewmrc to it. In the vuewmrc file you will find three panel descriptions, one each for large screens (1280x1024), medium screens (1024x768), and small screens (640x480). You can change all of the panel descriptions; change at least the one that corresponds to your screen. If you want the ce icon to appear in the top row of the control bar, add the following line to the "Row Top" block of the panel description: Ce [P Z] Ce.big.bm f.action CE_ACTION If you want the ce icon to appear in the bottom row of the control bar, add the following line to the "Row Bottom" block of the panel description: Ce [P Z] Ce.l.bm =65 f.action CE_ACTION ******** Step 2 ******** In the directory /usr/lib/X11/bitmaps/Vuewm create the following two files: These are the bitmaps for the ceterm pictures. (You can use /usr/bin/X11/bitmap to edit these bitmaps.) or make up your own. They are referenced in the vuewmrc file above. If you do not have sufficient rights to add files to that directory, consult your system administrator, who will gladly add them for you. Bitmap file "/usr/lib/X11/bitmaps/Vuewm/Ce.l.bm": #define term_width 65 #define term_height 28 static char term_bits[] = { 0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0x00,0x55,0xd5,0xff, 0xff,0xff,0xff,0x55,0x55,0x01,0xaa,0x6a,0x01,0x00,0x00,0x00, 0xab,0xaa,0x00,0x55,0x55,0x99,0x00,0x08,0x10,0x55,0x55,0x01, 0xaa,0x6a,0xa5,0x00,0xc8,0x28,0xab,0xaa,0x00,0x55,0x55,0xa5, 0x63,0x2e,0x09,0x55,0x55,0x01,0xaa,0x6a,0xbd,0x14,0xe9,0x1d, 0xab,0xaa,0x00,0xff,0x7f,0xa5,0x14,0x29,0x08,0xff,0xff,0x01, 0x00,0x40,0xa5,0x63,0xce,0x08,0x01,0x00,0x00,0x55,0x55,0x01, 0x00,0x00,0x00,0x55,0x55,0x01,0xff,0x7f,0x81,0x10,0x0a,0x01, 0xff,0xff,0x01,0x00,0x40,0x81,0x00,0x48,0x01,0x01,0x00,0x00, 0xaa,0x6a,0x99,0x13,0x2a,0x7d,0xab,0xaa,0x00,0xff,0x7f,0xa5, 0x14,0x1a,0x55,0xff,0xff,0x01,0x00,0x40,0xa5,0x14,0x2a,0x55, 0x01,0x00,0x00,0x55,0x55,0x99,0x14,0x4a,0x55,0x55,0x55,0x01, 0xff,0x7f,0x21,0x00,0x02,0x00,0xff,0xff,0x01,0x00,0x40,0x21, 0x40,0x02,0x00,0x01,0x00,0x00,0xaa,0x6a,0x19,0x80,0x01,0x00, 0xab,0xaa,0x00,0xff,0x7f,0x01,0x00,0x00,0x00,0xff,0xff,0x01, 0x00,0x40,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x55,0x55,0x01, 0x00,0x00,0x00,0x55,0x55,0x01,0xaa,0x6a,0x01,0x00,0x00,0x00, 0xab,0xaa,0x00,0x55,0x55,0x01,0x00,0x00,0x00,0x55,0x55,0x01, 0xaa,0x6a,0xff,0xff,0xff,0xff,0xab,0xaa,0x00,0x55,0xd5,0x00, 0x00,0x00,0x80,0x55,0x55,0x01,0xaa,0xea,0xff,0xff,0xff,0xff, 0xaa,0xaa,0x00,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x55,0x01}; Bitmap file "/usr/lib/X11/bitmaps/Vuewm/Ce.big.bm": #define editicon_width 60 #define editicon_height 60 #define editicon_x_hot -1 #define editicon_y_hot -1 static unsigned char editicon_bits[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0xf0,0xff,0xff,0xff,0xff,0x0f,0x00,0x00, 0x28,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x00,0x00,0x00, 0x00,0x08,0x00,0x00,0x28,0x46,0x00,0x10,0x80,0x08,0x00,0x00, 0x28,0x49,0x00,0x10,0x43,0x09,0x00,0x00,0x28,0xc9,0x61,0x9c, 0x44,0x08,0x00,0x00,0x28,0x4f,0x12,0x92,0xe7,0x08,0x00,0x00, 0x28,0x49,0x12,0x92,0x40,0x08,0x00,0x00,0x28,0xc9,0x61,0x1c, 0x43,0x08,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x08,0x00,0x00, 0x28,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x40,0x10,0x12, 0x04,0x08,0x00,0x00,0x28,0x40,0x00,0x90,0x04,0x08,0x00,0x00, 0x28,0xc6,0x11,0x52,0xe4,0x0b,0x00,0x00,0x28,0x49,0x12,0x32, 0xa4,0x0a,0x00,0x00,0x28,0x49,0x12,0x52,0xa4,0x0a,0x00,0x00, 0x28,0x46,0x12,0x92,0xa4,0x0a,0x00,0x00,0x28,0x08,0x00,0x02, 0x00,0x08,0x00,0x00,0x28,0x09,0x40,0x02,0x00,0x08,0x00,0x00, 0x28,0x06,0x80,0x01,0x00,0x08,0x00,0x00,0x28,0x00,0x00,0x00, 0x00,0x08,0x00,0x00,0x28,0x86,0x71,0x18,0x9c,0x0b,0x00,0x00, 0x28,0x49,0x92,0x24,0x44,0x08,0x00,0x00,0x28,0x49,0x92,0x24, 0x84,0x09,0x00,0x00,0x28,0x89,0x71,0x38,0x04,0x0a,0x00,0x00, 0x28,0x00,0x10,0xa0,0xc4,0x09,0x00,0x00,0x28,0x00,0x10,0x60, 0x00,0x08,0x00,0x00,0x28,0x02,0x10,0x20,0x00,0x08,0x00,0x00, 0x28,0x02,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x27,0x29,0x95, 0x24,0x09,0x00,0x00,0x28,0x22,0x29,0x15,0x23,0x09,0x00,0x00, 0x28,0x22,0x29,0x15,0x23,0x09,0x00,0x00,0x28,0xc2,0x11,0x8a, 0xc4,0x09,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x09,0x00,0x00, 0x28,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x28,0x00,0x00,0x00, 0xc0,0x08,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x08,0x00,0x00, 0x28,0x0f,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x04,0x00,0x00, 0x00,0x08,0x00,0x00,0x28,0x02,0x00,0x00,0x00,0x08,0x00,0x00, 0x28,0x0f,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x00,0x00,0x00, 0x00,0x08,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x08,0x00,0x00, 0x28,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x28,0x00,0x00,0x00, 0x00,0x08,0x00,0x00,0xe8,0xff,0xff,0xff,0xff,0x0f,0x00,0x00, 0x18,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0xf8,0xff,0xff,0xff, 0xff,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xcf,0x71,0x3e,0x00,0x00,0x00, 0x00,0x00,0x41,0x22,0x08,0x00,0x00,0x00,0x00,0x00,0x41,0x22, 0x08,0x00,0x00,0x00,0x00,0x00,0x47,0x22,0x08,0x00,0x00,0x00, 0x00,0x00,0x41,0x22,0x08,0x00,0x00,0x00,0x00,0x00,0x41,0x22, 0x08,0x00,0x00,0x00,0x00,0x00,0xcf,0x71,0x08,0x00,0x00,0x00}; ******** Step 3 ******** Create the directory /usr/local/lib/X11/vue/types and all intermediate directories if not already there. If that directory does not exist and you do not have rights to create it, consult your system administrator, who will be glad to create it for you. Add the following information to /usr/local/lib/X11/vue/types/vue.ad (create the file if it does not already exist): ##################### # # Ce actions # ##################### CE_ACTION \ * \ Ce.l.bm \ Ce.l.bm \ COMMAND \ NO-STDIO \ %LocalHost% \ /usr/bin/ce %(File)Arg_1% CETERM_ACTION \ * \ Ce.l.bm \ Ce.l.bm \ COMMAND \ NO-STDIO \ %LocalHost% \ $CEBINDIR/ceterm When the above steps have been completed, restart VUE for the changes to take effect. RELATED HELP FILES: support (customer support) _______________________________________________________________________________ Copyright (c) 2005, Robert Styma Consulting. All rights reserved.