I do have some code that does exactly this - not on this computer though - I'll try to look it out for you later tomorrow? I'll have to check it though as it is a few years old (in the early days of creating nested widgets), and well may be fine but may be ugly as hell :)