I have this dialog box with 2 radio/option buttons. I register a common listener for them. I use itemStateChanged to process the select event. But then i don't see a callback for the (automatically) deselected option button when its counterpart is selected. I would like a callback even for the deselected radio button. Is there a way to do this?
I also have some check boxes that i process within the dialog. So, alternatively, could I process all the dialog components when the OK button is clicked, by checking the return value of the execute() method? Is this possible? Any reason to pick one or the other?
Question about radio button events
Question about radio button events
OpenOffice 3.1 Windows 8.1
Re: Question about radio button events
You encounter limitiations of certain UNO objects? Try to make the most of it. There is no secret switch "behave normally".
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Question about radio button events
Bit offbeat suggestion but all a radio button is is a label with a ○ or ◉ character in front. A checkbox is a label with a ☐ or ☑ in front. So you could make your own radio buttons using labels and write your own code to set selection/deselection in response to mouseclicks on the label.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)