push button (stay "up" or "down")

delphi

Solution

All your Buttons must have their Property "Groupindex" set to the same number, but not equal 0. With AllowAllUp you can determine wether they're allowed to be all up or not.

At least that's how it is in Delphi 2006 for Win32.

Problem

I need to put on a form 3 buttons and when I click on the button to display it as pushed and the others to be up, when I click another button it should be "down" and the others "up"

Original source