From: Andy S. <laz...@gm...> - 2009-05-03 13:08:45
|
Hi all, Now i'm developing a multi-paned application. Example i have root paned named paned1 (VPaned) If i want split paned1 with two paned. I can use below code: Step (1) panedPack1 paned1 paned2 True True panedPack2 paned1 paned3 True True And then two children paned is split paned1 vertically, and them height is *half* of paned1. It's okay now. Next i need split paned2 horizontally with two paned. So i need remove paned2 from paned1. Step (2) containerRemove paned1 paned2 Then i add panedTemp (HPaned) to paned1 Step (3) containerAdd paned1 panedTemp. And i add new children paned to panedTemp Step (4) panedPack1 panedTemp paned4 True True panedPack2 panedTemp paned5 True True Now paned1 is split to *three* children paned. But problem occur, the height paned4 and paned5 of not *half* of paned1. But if i remove paned3 from paned1 in Step 2: containerRemove paned1 paned3 And children paned's height is *half* of parent paned. And result is if remove *first* child paned from parent paned, *second* paned will grow it's size. But i want keep them always half of parent paned. So have any way keep other child paneds' size don't change if i remove one child paned from parent paned? Thanks! -- Andy |