ItemIndex:=-1 doesn't work
Original Reporter info from Mantis: septem
-
Reporter name:
Original Reporter info from Mantis: septem
- Reporter name:
Description:
«RadioGroup.ItemIndex:=-1» does not work: the first item is always selected.
When I create a RadioGroup, using the components panel, the first item is selected. I can't set «ItemIndex: -1» in the Object Inspector. But I can remove this selection, using «radiogroup.itemindex:=-1;».
However it works only if a radiogroup was created with the components palette. If I create this component dynamically (r:=tradiogroup.create(form1)...), «r.itemindex:=-1;» doesn't work at all.
Additional information:
See an example in the attachment.
Mantis conversion info:
- Mantis ID: 22013
- Version: 1.1 (SVN)
- Fixed in revision: 37264 (#aa7b1efe)
- Monitored by: » septem (septem)