OnUpdate and Visible

2003-08-09 01:52:41 AM
Hi all,
I'm using TActionManager to enable/disable and check/uncheck controls
on my form. Some of my controls need to show and hide based on
context. It would be nice to do this within OnUpdate, because all of
my modifications to each control's properties would then be in one
I tried setting Visible from within OnUpdate but that didn't work.
Once the control became hidden, OnUpdate seemed to never be called
again. So my controls were stuck as hidden.
I took a walk through the VCL source code, but I didn't find an
answer. I could easily have missed something - there's a lot of code
Am I just nuts for trying this? Should I just track the context
changes myself and show/hide the buttons manually?
Bill D. Pirkle
Visit the World Chess Network at www.worldchessnetwork.com