Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8955781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:37:48+00:00 2026-06-15T14:37:48+00:00

I have 3 radio groups which I display on different tabsheets of a single

  • 0

I have 3 radio groups which I display on different tabsheets of a single form app, but they basically all have the same underlying functionality (and only one can be visible to the user at a time).

That is to say, if the user selects a new Radio Button of any of them, I want to programatically update the ItemIndexof the other two, to match.

BUT, I don’t want to execute the OnClick() function three times.

Is there a an easy way to do this, or should I just use a single radio group and keep changing it’s Parent, Top and Left as the user changes the visible tab?

The App currently has no menu, so it seems ugly to add one just for this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:37:50+00:00Added an answer on June 15, 2026 at 2:37 pm

    Create 3 radiogroups but only one event handler and assign it to all radiogroups:

    procedure TForm1.RadioGroupClick(Sender: TObject);
    
    var Index : Integer;
    
    begin
     RadioGroup1.OnClick := nil;
     RadioGroup2.OnClick := nil;
     RadioGroup3.OnClick := nil;
     Index := TRadioGroup(Sender).ItemIndex;
     RadioGroup1.ItemIndex := Index;
     RadioGroup2.ItemIndex := Index;
     RadioGroup3.ItemIndex := Index;
     RadioGroup1.OnClick := RadioGroupClick;
     RadioGroup2.OnClick := RadioGroupClick;
     RadioGroup3.OnClick := RadioGroupClick;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Delphi 2010, I have placed 2 radio groups onto a form then added
I have a form with a lot of groups of radios. Each radio has
I have a set of radio button groups. How can I get which is
I have a form with several radio buttons grouped by the same name, and
I have a html form which contains group of radio buttons. When one of
I have to make an app in which I need to display the status
I have a radio group , which contains n number of options. Each radio
I have a group of three radio buttons. Depending on which radio button is
I have 2 groups of radio buttons with links corresponding to each of the
I have some radio buttons and I'd like to have different hidden divs show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.