![]() Good Luck! RE: Help please with Radio-group. However, if you wanted the code to reflect each item's text value, it would look like this: Almost three years later, its a mystery that still haunts the small town of Delphi, Indiana while police say the killer may walk among them. The previous example assumes that your text 'Option1' is the first element (ItemIndex = 0) of the RadioGroup and that 'Option2' is second (ItemIndex = 1) and 'Option3' is third (ItemIndex = 2). Investigators are searching for the killer using their biggest clue: a recording of his voice from one of the victims phones ordering the girls Down the Hill. The OnClick event of a RadioGroup responds to any change to the selected item (RadioGroup.ItemIndex) including use of the arrow keys to change the selection. Panel3.Visible := (RadioGroup1.ItemIndex = 2) ![]() ![]() Panel2.Visible := (RadioGroup1.ItemIndex = 1) Panel1.Visible := (RadioGroup1.ItemIndex = 0) Procedure TfrmRegister.RadioGroup1Click(Sender: TObject) If I understand what you want to do, then you should be able to remove the BitBtn altogether and add the following code to the RadioGroup1.OnClick event:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |