the Panel TEXT property

  • Thread starter Thread starter Peter Oliphant
  • Start date Start date
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!!! : )
 
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?
 
Back
Top