www.digitalmars.com         C & C++   DMDScript  

D - += with properties

reply "Billy Zelsnack" <billy_zelsnack yahoo.com> writes:
This does work:
menuBar.buttons()+=new MenuBarButton();

This does not work:
menuBar.buttons+=new MenuBarButton();

I get the error: 'menuBar.buttons' is not a scalar, it is a HorizontalBox ()

buttons is declared as:
HorizontalBox buttons()
{
    return _buttons;
}

Do I need to declare the buttons property differently to make += work?
Apr 22 2004
parent Dave Sieber <dsieber spamnot.sbcglobal.net> writes:
"Billy Zelsnack" <billy_zelsnack yahoo.com> wrote:

 Do I need to declare the buttons property differently to make += work?
Not implemented yet. See the very bottom of http://www.digitalmars.com/d/property.html -- dave
Apr 22 2004