18 #include <Mrm/MrmAppl.h> 33 Active_str = XmStringCreateLtoR ( text, XmSTRING_DEFAULT_CHARSET);
51 str = XmStringCreate ( text, XmSTRING_DEFAULT_CHARSET);
64 char *resource, *value;
69 if( (!strcmp(resource,XmNlabelString)) ||
70 (!strcmp(resource,XmNmessageString)) ||
71 (!strcmp(resource,XmNtextString)) ||
72 (!strcmp(resource,XmNlistLabelString)) ||
73 (!strcmp(resource,XmNselectionLabelString)) )
78 XtSetArg(al[0], resource, value);
79 XtSetValues(w, al, 1);
96 char *resource, *value;
104 if( (!strcmp(resource,XmNlabelString)) ||
105 (!strcmp(resource,XmNmessageString)) ||
106 (!strcmp(resource,XmNtextString)) ||
107 (!strcmp(resource,XmNlistLabelString)) ||
108 (!strcmp(resource,XmNselectionLabelString)) )
111 XtSetArg(al[0], resource, &str);
114 XtSetArg(al[0], resource, value);
115 XtGetValues(w, al, 1);
118 XmStringGetLtoR(str, XmSTRING_DEFAULT_CHARSET, &cstr);
144 for(i=0;strs[
i][0];i++)
146 str_table[
i] = XmStringCreate ( strs[i], XmSTRING_DEFAULT_CHARSET);
184 if(!strcmp(resource,XmNbackgroundPixmap))
224 cm = DefaultColormap ( display, DefaultScreen(display));
226 XAllocNamedColor ( display, cm,
"Medium Aquamarine", &a,&b );
229 XAllocNamedColor ( display, cm,
"Turquoise", &a,&b );
232 XAllocNamedColor ( display, cm,
"Yellow", &a,&b );
235 XAllocNamedColor ( display, cm,
"Orange", &a,&b );
238 XAllocNamedColor ( display, cm,
"Red", &a,&b );
241 XAllocNamedColor ( display, cm,
"Black", &a,&b );
244 XAllocNamedColor ( display, cm,
"White", &a,&b );
247 XAllocNamedColor ( display, cm,
"Light Gray", &a,&b );
250 XAllocNamedColor ( display, cm,
"Gainsboro", &a,&b );
272 XtSetSensitive(widget_id,True);
280 XtSetSensitive(widget_id,False);
289 XtSetArg(al[0], XmNtitle, title);
290 XtSetValues(w, al, 1);
302 XtSetArg(al[0], XmNiconName, title);
303 XtSetValues(w, al, 1);
static Pixmap pixmap_colors[MAX_COLORS]
void set_insensitive(Widget widget_id)
void set_sensitive(Widget widget_id)
static Pixmap faces[MAX_COLORS]
void set_lock(Widget w, int color)
void get_something(Widget w, char *resource, char *value)
XmString get_str(char *text)
static XmString str_table[50]
void get_all_colors(Display *display, Widget w)
void set_icon_title(Widget w, char *title)
static Pixmap watch_colors[MAX_COLORS]
Pixel rgb_colors[MAX_COLORS]
void set_title(Widget w, char *title)
void set_unlock(Widget w)
Pixel get_named_color(int color)
XmString create_str(char *text)
void set_color(Widget w, char *resource, int color)
void set_watch(Widget w, int color)
void delete_str(XmString str)
void set_face(Widget w, int color)
static XmString Active_str
static Pixmap locks[MAX_COLORS]
XmStringTable create_str_table(strs)
void set_something(Widget w, char *resource, char *value)