Radiobuttons not responding

ValDog

Active Member
Licensed User
Longtime User
I have three radiobuttons in a panel, all set to Enabled and Visible in the Designer. Checked is set to True for one of them and to False for the other two. When I compile and run the program, they display just fine, but do not respond to a touch. Any suggestions?
 

ValDog

Active Member
Licensed User
Longtime User
Yes, I've created the events - generating members for the CheckedChange event for each radiobutton.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
There is always a chance of forgotten pieces of code somewhere, disabling the radio buttons, while it could also be a disabled panel.
 
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
OK, I've stripped my code down to the bare essentials. Once running, select Configure from Menu, scroll down to last panel to see the subject radiobuttons.
Thanks for looking at this.
 

Attachments

  • GSight.zip
    13.2 KB · Views: 162
Upvote 0

klaus

Expert
Licensed User
Longtime User
In the Config Activity you must repalce in these lines:
B4X:
rb10cm.Enabled = Main.bGP10m
rb1m.Enabled = Main.bGP1m
rbContact.Enabled = Main.bGPContact
Enabled by Checked !
B4X:
rb10cm.Checked = Main.bGP10m
rb1m.Checked = Main.bGP1m
rbContact.Checked = Main.bGPContact
The three variables are False so your RadioButtons are disabled and won't work !

Best regards.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
As I've said earlier, there should be a piece of code disabling the radioButtons. Check your updateSetup sub in config for these lines:
B4X:
rb10cm.Enabled = Main.bGP10m
    rb1m.Enabled = Main.bGP1m
    rbContact.Enabled = Main.bGPContact
I suspect you should change enabled to checked.
 
Upvote 0
Top