It can be relatively easy to read.

Create an enumeration with an element for each unique tag you want.

In your FormCreate or somewhere, assign each enum element to the appropriate
button/menu Tag.

Then you can use the enum elements in your case statement.

Alternatively, if you're wanting to tie multiple button & menu clicks
together, you could look at Actions?

HTH,

Conor

-----Original Message-----
From: Alistair George [mailto:[EMAIL PROTECTED]]

[snip]

It is a different way of doing it, but I thought if I could use the sender
of all the various checks and menu clicks it would save a lot of coding and
make it a lot easier to read.
The other way would be to allocate each item a tag, but then the code is
nowhere as easy to read.
Thanks,
Al+
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to