82 |
arcolor_update_preview(); |
arcolor_update_preview(); |
83 |
} |
} |
84 |
|
|
85 |
Widget |
void |
86 |
arcolor_scale(Widget parent_widget, |
arcolor_set_scale_resources() |
|
char *title_string) |
|
87 |
{ |
{ |
88 |
XmString title_motif_string; |
ARCLARG; |
|
Widget scale_widget; |
|
|
|
|
|
title_motif_string= |
|
|
XmStringCreateLocalized(title_string); |
|
89 |
antiright_set(XmNorientation, XmHORIZONTAL); |
antiright_set(XmNorientation, XmHORIZONTAL); |
90 |
antiright_set(XmNmaximum, 255); |
antiright_set(XmNmaximum, 255); |
91 |
antiright_set(XmNwidth, 255); |
antiright_set(XmNwidth, 255); |
92 |
antiright_set(XmNvalue, 0); |
antiright_set(XmNvalue, 0); |
93 |
antiright_set(XmNshowValue, True); |
antiright_set(XmNshowValue, True); |
94 |
|
} |
95 |
|
|
96 |
|
Widget |
97 |
|
arcolor_scale(Widget parent_widget, |
98 |
|
char *title_string) |
99 |
|
{ |
100 |
|
Widget scale_widget; |
101 |
|
XmString title_motif_string=XmStringCreateLocalized(title_string); |
102 |
|
arcolor_set_scale_resources(); |
103 |
antiright_set(XmNtitleString, (XtArgVal)title_motif_string); |
antiright_set(XmNtitleString, (XtArgVal)title_motif_string); |
104 |
scale_widget=XmCreateScale(parent_widget, |
scale_widget=XmCreateScale(parent_widget,"scale_widget", |
105 |
"scale_widget", |
antiright.arguments, antiright.arguments_int); |
|
antiright.arguments, |
|
|
antiright.arguments_int); |
|
106 |
XmStringFree(title_motif_string); |
XmStringFree(title_motif_string); |
107 |
XtManageChild(scale_widget); |
XtManageChild(scale_widget); |
108 |
|
|