I need to create a compound control, containing for example a label and a text editor. Is there any way to do this on the S60 platform, so that I don't have to handle the layout and background drawing myself?

Currently I have a working compound control, but I have to draw the background manually in the Draw method, and do the layout manually in the SizeChanged method.

I found some references to AknLayoutUtils and MCoeLayoutManager, but no guides or examples explaining how to use it.

I'm sure this is a very common problem, is there any common solution for this?