Still having problems with Mx.Widget subclassing



Hi,

I'm having problems getting Mx.Widget subclasses to display properly. I had a thread on this a while back which solved one issue, but showed another.

In my Mx.Widget subclasses, I'm calling paint for each child in my widget now when the parent paint vfunc is called. This is painting things (so far as I can tell), but it seems like the children are being painted 1x1 px in the top left corner, despite me setting their sizes. Do I need to override allocate for the children as well as paint, or is there some other issue here?

I've attached a screenshot showing the issue. There is an MxEntry and an MxScrollview in there containing a bunch of other widgets.


Thanks in advance.

Attachment: MxWidget Issue.png
Description: PNG image



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]