push button (stay "up" or "down")
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 an开发者_如何学Pythonother button it should be "down" and the others "up"
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.
Remus, i'm not a Delphi guy but the concept you're describing is called Radio Buttons. i'm sure that Delphi has something like that built in. Also note that radio button by default might look like check boxes (square or circular) but there should be a property/attribute that you can adjust to make them look like buttons with "pressed" states.
Somewhere to start...
精彩评论