|
RE:.0
>I would like to create another Label Widget but "in reverse"
How about something like this:
Get the foreground & background of the existing label widget, then use these
values to SetValue or Create the New label widget.
XColor *a_foreground; XColor *a_background;
Arg r_args[2];
...
XtSetArg(arg[0], DwtNforeground, &a_foreground );
XtSetArg(arg[1], DwtNbackground, &a_background );
XtGetValues( existing_label_widget, r_args, 2);
XtSetArg(arg[0], DwtNforeground, a_background );
XtSetArg(arg[1], DwtNbackground, a_foreground );
then either:
XtSetValues( new_label_widget, r_args, 2);
OR
DwtFetchWidgetOverride(ar_UIHierarchy,
"fetched_label_name",
ar_parent_widget, NULL,
r_args, 2,
&new_label_widget,
&a_dummy_class )
OR
DwtLabelCreate(...,r_args,2)
Michael
|