RadioBox spacing

RadioBox spacing

Post by DVik » Wed, 12 Apr 2006 22:21:57


Hi I ''ve created a RadioBox and I am trying to verticaly space the
options a bit. I would like to see the buttons like
-----------------------
A

B

C

D

----------------------
and not
A
B
C
D
------------------------------------
Which resources do I need to set and in what values? Do I need to
configure the RadioBox or each ToggleButton? 've tried various things
cannot space them out. I wouldn't like to reimplement them as Form
though...

Any help welcome.
 
 
 

RadioBox spacing

Post by ST » Wed, 12 Apr 2006 22:35:41

The radio box is really an XmRowColumn, so check the resources on that.
I suspect XmNspacing will do the trick.

 
 
 

RadioBox spacing

Post by DVik » Wed, 12 Apr 2006 23:04:19

I 'll have a look again but I think 've tried that. I am aware of its
hierarchy.
 
 
 

RadioBox spacing

Post by ST » Wed, 12 Apr 2006 23:56:43


Some other resource may be overriding the spacing, like the packing.

I just tried it, and XmNspacing works fine. I'm not using
XmCreateRadioBox, but just creating an XmRowColuwm with radioBehavior
and radioAlwaysOne manually set to True.

You could also try setting XmNarginHeight on each of the toggles.