what i am trying to do is to combine TLabel and TPanel objects within one with.
if Sender is TLabel then
... here i am looking for particular object and checking some things too boring to be listed
if Sender is TPanel then
... the same here
... now i want to basically highlight object,
if HighLightObject <> nil then
with HighLightObject as TLabel do
... what i don't want to do is to repeat the same for TPanel and other objects (Image,Edit,Memo,Radio,CheckBox ... )
something like this would be perfect
with HighLightObject as TLabel,TPanel,TImage .... do
now down to earth, any suggestions how can i chuck it into the same with...?
(I've given 350 points to this question, as i have spent 3 hours trying to do it... and i don't consider my self dummy)