the Panel TEXT property

P

Peter Oliphant

A Panel does not have a caption, and so doesn't really need a Text property.
Yet, it does have this property. Furthermore, on-line MSDN says it is
'overridden'. The 'detail' of this also just says it's overridden with no
other information about it. Does this mean it allows reference to it, but it
does nothing?

In any case, it is good that it does have this property, since I wrote a
RadioButton 'holder' with GroupBox and needed to create one using a Panel
instead. Since Text is supported by Panel I just did a copy-rename(GroupBox
to Panel) and it worked first time!!! : )
 
P

Peter Oliphant

Now, if only managed classes could be templated, I wouldn't have to write my
code twice: once for a GroupBox and again for a Panel (with template
capabilities I could make the container type a templated variable).... : )

Are templates going to be supported in managed code in VC++ .NET 2005? What
about other stuff, like 'const', etc. that seem like they should not be in
conflict with the managed paradigm?
 

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