lines connecting other boxes that change colors

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
lines connecting other boxes that change colors

Submitted by Anonymous (not verified) on Fri, 06/15/2012 - 12:07

how do i create multiple lines that connect boxes. The lines have to be independent of each other since they can change colors anytime.
Thanks :D
‹ Getting CDE active workspace text button and a toggle button ›

Anonymous

Fri, 04/30/2004 - 23:29#1

lines connecting other boxes that change colors

1 You can use Separators to draw lines on a panel. You may be able to set the colour?

ie.

/* Some Vertical Separator options */
XtSetArg(args[0], XmNx, filename_text_field_x - 10);
XtSetArg(args[1], XmNy, 0);
XtSetArg(args[2], XmNheight, top_level_height);
XtSetArg(args[3], XmNorientation, XmVERTICAL);
XtSetArg(args[4], XmNseparatorType, XmSHADOW_ETCHED_IN);

win_1_file_vertical_separator = XmCreateSeparator(main_win_1,
"win_1_File_Vertical_Separator",args, 5);

XtManageChild(win_1_file_vertical_separator);

2 If you want different colours it may be better to draw and re-draw them in a drawing-area/canvas.