We help IT Professionals succeed at work.

Invisible components in designmode

pivar
pivar asked
on
Medium Priority
212 Views
Last Modified: 2010-04-04
Hi,

How can I hide a component in designmode? More specifically, I'm creating my own component which sometimes will be set to visible := False. Even though the component is invisible when running, in design mode it's visible.

Thanks,
pivar
Comment
Watch Question

Commented:
Euhm, why do you want to do that? When it's invisible in design-mode how will you ever find it back easely? Zif.

Author

Commented:
Well, actually it's a component (e.g. TEdit) in my component which should be invisible (I was to lazy to write that). I'm changing the look of the component with properties (show this or show that). It would be nice if it looked the same in runtime and designmode.

/pivar

Commented:
Hi pivar, yes it would be nice, but not very friendly for the designer. He wont find his component easely back if it's invisible.
Zif.
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Vladika, thanks. It was exactly what I looked for.

ZifNab, I understand your concerns but it's a component created in my component that's going to be invisible. My component will never be hided from the designer, it's just that the looks will be different according to some properties.

/pivar
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.