Tag property a la Delphi

I

IGW

Hello all,

I would like something like the Tag property as exposed in the basic Object
(is it Tobject?) in Delphi. I gather there is nothing like this in the CF.

Problem; I have a bunch of controls and menu items that I would like to
disable/enable depending on system state. I would prefer to iterate across
all the controls and menu items and detect some attribute that would let me
know whether they should be enable or disabled (a property set function
will be used to control the enabling/disabling).

If I had a Tag property it would be simple. Without it I wonder what the
best method would be. Maybe making the first letter of the control/menu
items name distinguishable. Is there a better way?

thanks,
Ian
 
I

IGW

Maybe making the first letter of the
control/menu items name distinguishable.

But this then raises the question of how to get access to the control name
programatically. Is there a way?

Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top