EditTable Widget WebFAQ - Q22
/*********************************************************
Suppose you are outputing the content of the cells ranging
from (9,9) to (16,16) to a PS file "test_ps.ps".
*********************************************************/
:
static char *control_names[] = { "PS", "Help", "Exit" };
:
:
static void
ControlCallback(widget, id, unused)
Widget widget;
int id;
XtPointer unused;
{
switch (id) {
case XtNumber(control_names) - 3:
XintEditTableOutputPostscript(Table, "test_ps.ps",
XintCOLOR, 1.0, 9, 16, 9, 16);
break;
case XtNumber(control_names) - 2: Help(); break;
case XtNumber(control_names) - 1: exit (0); break;
default: XtError("Bad control code passed to ControlsProc");
}
}
:
:
Click here for the Image
Back to EditTable FAQ
© INT 1996.