Synch with Gnus trunk.
(gnus-mime-buttonized-part-id): New internal variable.
(gnus-article-edit-part): Bind it to make last part that is substituted
or deleted visible.
(gnus-mime-display-single): Buttonize part of which id equals to
gnus-mime-buttonized-part-id.
line source
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* Copyright Massachusetts Institute of Technology 1985 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "copyright.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 2008, 2009, 2010 Free Software Foundation, Inc.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 This program is free software: you can redistribute it and/or modify
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 it under the terms of the GNU General Public License as published by
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 the Free Software Foundation, either version 3 of the License, or
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 (at your option) any later version.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 This program is distributed in the hope that it will be useful,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 but WITHOUT ANY WARRANTY; without even the implied warranty of
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 GNU General Public License for more details.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 You should have received a copy of the GNU General Public License
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 along with this program. If not, see <http://www.gnu.org/licenses/>. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * XMenu: MIT Project Athena, X Window system menu package
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 *
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * XMenuCreate - Creates an X window system menu object.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 *
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Author: Tony Della Fera, DEC
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * January 23, 1986
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 *
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <config.h>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "XMenuInt.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #ifdef EMACS_BITMAP_FILES
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/dimple1.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/dimple3.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/gray1.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/gray3.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/crosswv.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/leftptr.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/leftpmsk.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/rtptr.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/rtpmsk.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/cntrptr.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/cntrpmsk.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../src/bitmaps/stipple.xbm"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #else
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/dimple1>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/dimple3>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/gray1>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/gray3>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/cross_weave>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/left_ptr>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/left_ptrmsk>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/right_ptr>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/right_ptrmsk>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/cntr_ptr>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/cntr_ptrmsk>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <X11/bitmaps/stipple>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #endif /* not EMACS_BITMAP_FILES */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_FREEZE 0
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_REVERSE 0
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_MENU_STYLE LEFT
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_MENU_MODE BOX
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_INACT_PNUM 3
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define MAX_INACT_PNUM 4
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_P_STYLE CENTER
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_P_EVENTS (EnterWindowMask | ExposureMask)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_P_FNT_NAME "fixed"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_P_SPREAD 0.5
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_P_BDR_WIDTH 2
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_S_STYLE LEFT
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_S_EVENTS (EnterWindowMask | LeaveWindowMask)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_S_FNT_NAME "fixed"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_S_SPREAD 0.10
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define DEF_S_BDR_WIDTH 1
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define XASSOC_TABLE_SIZE 64
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #define TILE_BUF_SIZE 5
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int atoi();
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 double atof();
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char *x_get_resource_string ();
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 static Status
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display, map, colorName, color, junk)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Display *display;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Colormap map;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char *colorName;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor *color;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor *junk;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return (colorName!=0 &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XParseColor(display, map, colorName, color) &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocColor(display, map, color));
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XMenu *
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XMenuCreate(display, parent, def_env)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Display *display; /* ID of previously opened display */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Window parent; /* Window ID of the menu's parent window. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 register char *def_env; /* X Defaults program environment name. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 register int i; /* Loop counter. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 register int j; /* Loop counter. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 register char *def_val; /* X Default value temp variable. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 register XMenu *menu; /* Pointer to the new menu. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XMStyle menu_style; /* Menu display style. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XMMode menu_mode; /* Menu display mode. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XMPane *pane; /* Pane list header. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAssocTable *assoc_tab; /* XAssocTable pointer. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int freeze; /* Freeze server mode. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int reverse; /* Reverse video mode. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XMStyle p_style; /* Pane display style. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char *p_fnt_name; /* Flag font name. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFontStruct *p_fnt_info; /* Flag font structure */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int p_fnt_pad; /* Flag font padding in pixels. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 double p_spread; /* Pane spread in flag height fractions. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int p_fnt_height; /* Pane character height. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int p_bdr_width; /* Pane border width. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int flag_height; /* Flag window height. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int p_height; /* Pane window height. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int p_x_off; /* Pane X offset. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int p_y_off; /* Pane Y offset. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 GC pane_GC; /* Pane graphics context. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XMStyle s_style; /* Selection display style. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char *s_fnt_name; /* Selection font name. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFontStruct *s_fnt_info; /* Selection font structure. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int s_fnt_pad; /* Selection font padding in pixels. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int s_fnt_height; /* Selection font character height */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 double s_spread; /* Select spread in line height fractions. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int s_bdr_width; /* Highlight border width. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int s_height; /* Selection window height. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int s_x_off; /* Selection window X offset. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int s_y_off; /* Selection window Y offset. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 GC normal_select_GC; /* GC used for normal video selection. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 GC inverse_select_GC; /* GC used for inverse video selection. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 GC inact_GC; /* GC for inactive pane header and */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* selections. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 GC inact_GC_noexpose;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor color_def; /* Temp color definition holder. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor screen_def; /* Temp screen color definition holder */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor p_bdr_color; /* Color of border. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor s_bdr_color; /* Color of highlight. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor p_frg_color; /* Color of pane foreground color. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor s_frg_color; /* Color of selection foreground. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor bkgnd_color; /* Color of background.. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XColor mouse_color; /* Color of mouse cursor. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Cursor mouse_cursor; /* Mouse cursor. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixmap inact_bitmap; /* Menu inactive pixmap. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int inact_pnum; /* Inactive background pattern number. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixel p_bdr_pixel; /* Pane border pixel. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixel s_bdr_pixel; /* Selection border pixel. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixel p_frg_pixel; /* Pane foreground pixel. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixel s_frg_pixel; /* Selection foreground pixel. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixel bkgnd_pixel; /* Menu background pixel. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int *width, *height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixmap *bitmap;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int *x_hot, *y_hot;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int status; /* Return code from XReadBitmapFile. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixmap cursor; /* Cursor pixmap holder. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixmap cursor_mask; /* Cursor mask pixmap holder. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Pixmap stipple_pixmap; /* Stipple mask for half-tone text. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 unsigned long valuemask;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XGCValues *values;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 Window root = RootWindow (display, DefaultScreen (display));
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Calloc the XMenu structure and the initial pane.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu = (XMenu *)calloc(1, sizeof(XMenu));
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (menu == NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_CALLOC;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 pane = (XMPane *)calloc(1, sizeof(XMPane));
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (pane == NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_CALLOC;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Create the XAssocTable
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 assoc_tab = (XAssocTable *)XCreateAssocTable(XASSOC_TABLE_SIZE);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if(assoc_tab == NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode= XME_CREATE_ASSOC;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Set up the default environment name.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_env == NULL || *def_env == '\0') def_env = "XMenu";
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Set up internal fail-safe defaults.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 freeze = DEF_FREEZE;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 reverse = DEF_REVERSE;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu_style = DEF_MENU_STYLE;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu_mode = DEF_MENU_MODE;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 inact_pnum = DEF_INACT_PNUM;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_style = DEF_P_STYLE;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_spread = DEF_P_SPREAD;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_fnt_name = DEF_P_FNT_NAME;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_bdr_width = DEF_P_BDR_WIDTH;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_style = DEF_S_STYLE;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_spread = DEF_S_SPREAD;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_fnt_name = DEF_S_FNT_NAME;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_bdr_width = DEF_S_BDR_WIDTH;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Get default values from X.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("menuFreeze", "MenuFreeze");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (strcmp(def_val, "on") == 0) freeze = 1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "off") == 0) freeze = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("menuReverseVideo", "MenuReverseVideo");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (strcmp(def_val, "on") == 0) reverse = 1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "off") == 0) reverse = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("menuStyle", "MenuStyle");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (strcmp(def_val, "right_hand") == 0) menu_style = RIGHT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "left_hand") == 0) menu_style = LEFT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "center") == 0) menu_style = CENTER;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("menuMode", "MenuMode");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (strcmp(def_val, "box") == 0) menu_mode = BOX;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "invert") == 0) menu_mode = INVERT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("menuMouse", "MenuMouse");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val != NULL &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DisplayCells(display, DefaultScreen(display)) > 2 &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &mouse_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (reverse &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "white",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &mouse_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "black",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &mouse_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("menuBackground", "MenuBackground");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val != NULL &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DisplayCells(display, DefaultScreen(display)) > 2 &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &bkgnd_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (reverse &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "black",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &bkgnd_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "white",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &bkgnd_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("menuInactivePattern", "MenuInactivePattern");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (strcmp(def_val, "dimple1") == 0) inact_pnum = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "dimple3") == 0) inact_pnum = 1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "gray1") == 0) inact_pnum = 2;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "gray3") == 0) inact_pnum = 3;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "cross_weave") == 0) inact_pnum = 4;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("paneStyle", "PaneStyle");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (strcmp(def_val, "flush_left") == 0) p_style = LEFT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "flush_right") == 0) p_style = RIGHT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "center") == 0) p_style = CENTER;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("paneFont", "PaneFont");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) p_fnt_name = def_val;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("paneForeground", "PaneForeground");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val != NULL &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DisplayCells(display, DefaultScreen(display)) > 2
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display, DefaultColormap(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &p_frg_color, &color_def);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (reverse) XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "white",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &p_frg_color, &color_def);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "black",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &p_frg_color, &color_def);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("paneBorder", "PaneBorder");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val != NULL &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DisplayCells(display, DefaultScreen(display)) > 2 &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &p_bdr_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (reverse &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "white",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &p_bdr_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "black",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &p_bdr_color, &color_def);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("paneBorderWidth", "PaneBorderWidth");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) p_bdr_width = atoi(def_val);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("paneSpread", "PaneSpread");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) p_spread = atof(def_val);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("selectionStyle", "SelectionStyle");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (strcmp(def_val, "flush_left") == 0) s_style = LEFT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "flush_right") == 0) s_style = RIGHT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (strcmp(def_val, "center") == 0) s_style = CENTER;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("selectionFont", "SelectionFont");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) s_fnt_name = def_val;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("selectionForeground", "SelectionForeground");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val != NULL &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DisplayCells(display, DefaultScreen(display)) > 2 &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &s_frg_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (reverse &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "white",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &s_frg_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 ) ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "black",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &s_frg_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 ) ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("selectionBorder", "SelectionBorder");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val != NULL &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DisplayCells(display, DefaultScreen(display)) > 2 &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &s_bdr_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 ) ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (reverse &&
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "white",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &s_bdr_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 ) ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else if (XAllocDisplayColor(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DefaultColormap(display, DefaultScreen(display)),
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 "black",
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &s_bdr_color, &color_def)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 ) ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 else ;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("selectionBorderWidth", "SelectionBorderWidth");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) s_bdr_width = atoi(def_val);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 def_val = x_get_resource_string ("selectionSpread", "SelectionSpread");
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (def_val != NULL) s_spread = atof(def_val);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Create and store the inactive pattern pixmap.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char *data = NULL;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int width, height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 switch (inact_pnum)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case 0:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 data = (char *)dimple1_bits;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 width = dimple1_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 height = dimple1_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case 1:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 data = (char *)dimple3_bits;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 width = dimple3_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 height = dimple3_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case 2:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 data = (char *)gray1_bits;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 width = gray1_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 height = gray1_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case 3:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 data = (char *)gray3_bits;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 width = gray3_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 height = gray3_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case 4:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 data = (char *)cross_weave_bits;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 width = cross_weave_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 height = cross_weave_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (! data)
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_STORE_BITMAP;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 inact_bitmap =
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XCreatePixmapFromBitmapData
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 (display, root, data, width, height,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_frg_color.pixel, bkgnd_color.pixel,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 DisplayPlanes (display, DefaultScreen (display)));
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Load the mouse cursor.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 switch (menu_style) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case LEFT:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor = XCreateBitmapFromData(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptr_bits,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptr_width,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptr_height);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor_mask = XCreateBitmapFromData(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptrmsk_bits,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptrmsk_width,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptrmsk_height);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 mouse_cursor = XCreatePixmapCursor(
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor, cursor_mask,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &mouse_color, &bkgnd_color,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptr_x_hot,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 left_ptr_y_hot
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFreePixmap(display, cursor);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFreePixmap(display, cursor_mask);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case RIGHT:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor = XCreateBitmapFromData(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptr_bits,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptr_width,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptr_height);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor_mask = XCreateBitmapFromData(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptrmsk_bits,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptrmsk_width,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptrmsk_height);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 mouse_cursor = XCreatePixmapCursor(
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor, cursor_mask,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &mouse_color, &bkgnd_color,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptr_x_hot,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 right_ptr_y_hot
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFreePixmap(display, cursor);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFreePixmap(display, cursor_mask);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case CENTER:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor = XCreateBitmapFromData(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptr_bits,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptr_width,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptr_height);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor_mask = XCreateBitmapFromData(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptrmsk_bits,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptrmsk_width,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptrmsk_height);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 mouse_cursor = XCreatePixmapCursor(
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cursor, cursor_mask,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 &mouse_color, &bkgnd_color,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptr_x_hot,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 cntr_ptr_y_hot
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFreePixmap(display, cursor);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 XFreePixmap(display, cursor_mask);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 default:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* Error! Invalid style parameter. */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_STYLE_PARAM;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (mouse_cursor == _X_FAILURE) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_CREATE_CURSOR;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Open the pane and selection fonts.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_fnt_info = XLoadQueryFont(display, p_fnt_name);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (p_fnt_info == NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_OPEN_FONT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_fnt_info = XLoadQueryFont(display, s_fnt_name);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if (s_fnt_info == NULL) {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_OPEN_FONT;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(NULL);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Calculate the fixed padding value in pixels for each font.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_fnt_height = p_fnt_info->max_bounds.ascent + p_fnt_info->max_bounds.descent;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_fnt_height = s_fnt_info->max_bounds.ascent + s_fnt_info->max_bounds.descent;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_fnt_pad = s_spread * p_fnt_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_fnt_pad = s_spread * s_fnt_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Calculate fixed height and offset requirements.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 flag_height = p_fnt_height + (p_fnt_pad << 1);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_height = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_y_off = flag_height + p_bdr_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 p_x_off = p_y_off * p_spread;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_height = s_fnt_height + (s_fnt_pad << 1) + (s_bdr_width << 1);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_y_off = s_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 s_x_off = p_x_off;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Set up the pane list header.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 pane->next = pane;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 pane->prev = pane;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 pane->type = PL_HEADER;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 pane->serial = -1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Initialize the internal pane and selection creation queues.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMWinQueInit();
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Create pane, active, and inactive GC's.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values = (XGCValues *)malloc(sizeof(XGCValues));
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask = (GCForeground | GCBackground | GCFont | GCLineWidth);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * First, pane.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->foreground = p_frg_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->background = bkgnd_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->font = p_fnt_info->fid;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->line_width = p_bdr_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 pane_GC = XCreateGC(
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Then normal video selection.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->foreground = s_frg_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->background = bkgnd_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->font = s_fnt_info->fid;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->line_width = s_bdr_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 normal_select_GC = XCreateGC(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Inverse video selection.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->foreground = bkgnd_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->background = s_frg_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->font = s_fnt_info->fid;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->line_width = s_bdr_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 inverse_select_GC = XCreateGC(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 stipple_pixmap = XCreateBitmapFromData(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 stipple_bits,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 stipple_width,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 stipple_height);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Finally, inactive pane header and selections
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask |= (GCFillStyle | GCStipple);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->foreground = s_frg_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->background = bkgnd_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->font = s_fnt_info->fid;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->line_width = s_bdr_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->fill_style = FillStippled;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->stipple = stipple_pixmap;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 inact_GC = XCreateGC(display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask |= (GCGraphicsExposures);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 values->graphics_exposures = False;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 inact_GC_noexpose = XCreateGC (display,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 root,
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 valuemask, values);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Construct the XMenu object.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* -------------------- Menu data -------------------- */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->menu_style = menu_style;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->menu_mode = menu_mode;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->freeze = freeze;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->aeq = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->recompute = 1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->parent = parent;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->height = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->width = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->mouse_cursor = mouse_cursor;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->assoc_tab = assoc_tab;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_list = pane;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* -------------------- Pane window data -------------------- */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_style = p_style;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_events = DEF_P_EVENTS;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_fnt_info = p_fnt_info;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_fnt_pad = p_fnt_pad;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_spread = p_spread;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_bdr_width = p_bdr_width;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->flag_height = flag_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_width = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_height = p_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_x_off = p_x_off;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_y_off = p_y_off;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_count = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->pane_GC = pane_GC;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->x_pos = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->y_pos = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* -------------------- Selection window data -------------------- */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_style = s_style;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_events = DEF_S_EVENTS;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_fnt_info = s_fnt_info;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_fnt_pad = s_fnt_pad;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_spread = s_spread;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_bdr_width = s_bdr_width; /* unnecessary */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_width = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_height = s_height;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_x_off = s_x_off;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_y_off = s_y_off;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_count = 0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->normal_select_GC = normal_select_GC;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->inverse_select_GC = inverse_select_GC;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->inact_GC = inact_GC;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* -------------------- Color data -------------------- */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_bdr_color = p_bdr_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_bdr_color = s_bdr_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_frg_color = p_frg_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_frg_color = s_frg_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->bkgnd_color = bkgnd_color.pixel;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* -------------------- Pixmap data -------------------- */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_bdr_pixmap = None;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_bdr_pixmap = None;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->p_frg_pixmap = None;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->s_frg_pixmap = None;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->bkgnd_pixmap = None;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 menu->inact_pixmap = inact_bitmap;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /*
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 * Return the completed XMenu.
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 */
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 _XMErrorCode = XME_NO_ERROR;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return(menu);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 /* arch-tag: 6945b7d2-3b13-40b9-8b6e-56b1b20f3463
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 (do not change this comment) */