TRadioGroup: OnChange Workaround Fails In Form Initialization
Original Reporter info from Mantis: bwinfrey
-
Reporter name: Brian Winfrey
Original Reporter info from Mantis: bwinfrey
- Reporter name: Brian Winfrey
Description:
When Setting ItemIndex prior to Form.OnShow the workaround does not fire the OnClick event as "if FCreatingWnd or FUpdatingItems then exit;" causes the code to be bypassed.
Steps to reproduce:
Design a form with a RadioGroup. Add Method for RadioGroup.OnClick.
Progamatically Create the form and set the item index.
Show the form.
Form := TForm.Create(Owner);
Form.RadioGroup.ItemIndex := 1;
Form.ShowModal;
Additional information:
Once the form is shown the workaround perfoms as expected. Trigger RadioGroup.OnClick in Form.OnShow to workaround.
Mantis conversion info:
- Mantis ID: 15989
- OS: ubuntu linux
- OS Build: 9.10
- Version: 0.9.28.2
- Fixed in revision: 30161 (#da157901)
- Monitored by: » bwinfrey (Brian Winfrey), » luizamerico (Luiz Americo)