XmVaRADIOBUTTON help

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

Questions about motif? Contact us

2 posts / 0 new
Last post
XmVaRADIOBUTTON help

Submitted by Anonymous on Fri, 10/10/2003 - 13:04.

hey ,

i am trying to do this

for(i=0; i {
str[i] = XmStringCreateLocalized(radiolabels[i]);

XtSetArg(args[i], XmVaRADIOBUTTON, str[i]);
}

w = XmVaCreateSimpleRadioBox(parent, "Radio Box", defaultBtnIndex, radioCB, args, i,
NULL);

the above creates the widget but i cant see the radio buttons.
instead if i put XmVaRADIOBUTTON with its 4 additional parameters
within the CreateSimpleRadioBox function it works

my question is i have `n` number of radio buttons to create
so i wanted to put them in the arglist and append it to the function call, but unfortunately arglist takes only two arguments.
is there a way i can do this in one shot.

i also know that arglist name parameter is a defined constant like XmNborderWith ... either from or widget public headed file.

guys can anybody help me on this , i dont want to write rowcol and
toggle button widgets to get the radio group.

regards and advance thanks
ragu.

Fri, 10/10/2003 - 13:24#1

Fri, 10/10/2003 - 13:24#1

Anonymous

XmVaRADIOBUTTON help - i found out

i found out and i followed the following combination and it worked.
w = XmVaCreateSimpleRadioBox(parent, "Radio Box", defaultBtnIndex,
radioCB,
// XmNentryClass, xmToggleButtonGadgetClass,
// XmNisHomogeneous, True,
XmNbuttonCount, numBtns,
XmNorientation, orientation,
NULL);

for(i=0; i {
XtVaCreateManagedWidget(radiolabels[i], xmToggleButtonGadgetClass, w, NULL);
}

any other alternative way welcomed.