April 22, 2004 += with properties | ||||
|---|---|---|---|---|
| ||||
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 Re: += with properties | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Billy Zelsnack | "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 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply