Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,094
    • Issues 2,094
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Scheduled maintenance on the database layer will take place on 2022-07-02. We expect GitLab.com to be unavailable for up to 2 hours starting from 06:00 UTC. Kindly follow our status page for updates and read more in our blog post.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #22013
Closed
Open
Created May 12, 2012 by FPC Admin account@fpc_adminOwner

ItemIndex:=-1 doesn't work

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)
Assignee
Assign to
Time tracking