April 22, 2004
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?


April 22, 2004
"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