Angus,

The Alignment radiobuttongroup of 4 buttons in the Paragraph dialog (with
my patch applied!) behaves differently from the Placement buttongroup of
3 buttons in the Float dialog. And I can't find the reason for this
different behaviour.

Requirements for proper radiobuttons (as far as my knowledge goes):

1) Group the buttongroup in the .fd file into one group
   with "<no name>" label.

2). Add to the Form*.h file
         #include "RadioButtonGroup.h"
    and declare a class member
         RadioButtonGroup groupname_;

3) In the Form*.C, init the group by adding each
   button from the group and attach a value it:
      groupname_.init(dialog_->radio_buttonname, value);

4) With this setup, selecting a button, will immediately
   deselect the others in the buttongroup; one, and ONLY one,
   is always selected.


This works indeed for the Paragraph dialog, so that the buttongroup
really behaves like radiobuttons.

However, the same setup for the Float dialog makes the buttongroup behave
like independent buttons (you can select several simultaneously) and
clicking on a selected button deselects it (so you can even deselect all).
Do you also see this?

I can't see why the same setup is okay for the Paragraph dialog and is not
in the Float dialog. Could it be that  "one is derived from foo and the
other from bar", though I do not properly understand this kind of formalism.

If you only could give me a hint/clue....

Regards,
Rob.

PS: if we cannot find the reason for this odd behaviour of the Float radiobuttons,
I'll create a patch that uses brute force to ensure the buttongroup behaves as
radio buttons.

Reply via email to