Question about radio button events

Keyboard macros or custom scripts

Question about radio button events

Postby frowdow » Tue Sep 26, 2017 3:44 pm

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?
OpenOffice 3.1 Windows 8.1
Posts: 3
Joined: Mon Nov 17, 2014 4:23 pm

Re: Question about radio button events

Postby Villeroy » Tue Sep 26, 2017 10:15 pm

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 16.04, OpenOffice 4.x & LibreOffice 5.x
User avatar
Posts: 25469
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Question about radio button events

Postby JeJe » Wed Sep 27, 2017 6:34 pm

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.
Openoffice 4.1.2
Windows 8
Posts: 228
Joined: Wed Mar 09, 2016 2:40 pm

Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 3 guests