TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALEX VASITCH
from: MARTIN MAAT
date: 1997-04-11 23:40:00
subject: Programming Query

Hallo Alex
 AV> a group of TSpeed Buttons on a form and would like to disable the
 AV> selected one until another is selected.  I have managed to assign
 AV> different TAG values to each button but would like a generic
 AV> procedure to enable and disable these buttons.
Link the OnClick events of all butons to the same event procedure and use the 
Sender parameter to identify the button. Do something like
  (Sender as TSpeedButton).Visible := ...
or
  TSpeedButton(Sender),Visible := ...
Groeten, Martin.
--- FMail/386 1.02
---------------
* Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.