On 2009-10-20, at 13:00, Henry Minsky wrote: > On Tue, Oct 20, 2009 at 12:11 PM, P T Withington <[email protected] > >wrote: > >> It seems to me that you need to override `set clip` in LzText to >> turn off >> scrollevents if clip is set to false, and in `set scrollevents` >> warn if they >> are turned on when clipping is off. >> >> I can see that this is a little problematic, since you don't know >> what >> order these attributes will be initialized in at construct time. I >> guess >> you have to conditionalize the warning in the setter on `inited`. > > > Yes that was the problem, the order is not deterministic whether > clip or > scrollevents get set first at construct time.
So, can you keep the warning in init (when all the flags are set), but also warn in scrollevents after inited if you try to turn them on when clip is off? (And set scrollevents to false if you set clip to false). _______________________________________________ Laszlo-reviews mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews
