TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: BRYAN SMITH
date: 1996-12-14 18:23:00
subject: Dynamic Forms

I'm adding radio buttons to a form dynamically, e.g.
RadioButtonArray[j] := TRadioButton.Create(Form3) ;
With RadioButtonArray[j] do
begin
  parent := ScrollBox1 ;
  tag := j ;
  top := ... etc....
  left := ........
end ;
I need to have a common OnClick handler for all these radio buttons.  The
handler will hide or show various combinations of regular buttons on the
form, and change their captions, depending on the tag of the radio button
that was clicked.
For this kind of run-time form creation, how can I assign the handler to the
buttons ?
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)

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™.