Tabcontrol within a Tabcontrol? |
Post Reply |
Author | |
Stilki
Groupie Joined: 27 May 2005 Status: Offline Points: 70 |
Post Options
Thanks(0)
Posted: 27 May 2005 at 9:52pm |
I am having problems keeping a child tabcontrol within a parent tabcontrol inside the client area of the parent tabcontrol when you press one of the child tabs. The child tabcontrol keeps jumping out of the parent tabcontrol. Thus the left and top coordinates of the child tabcontrol get re-aligned to the container of the parent tabcontrol. eg. Child and Parent tabcontrols have two tabs. Child OLE_HANDLE handle on both tabs of parent are set to the child tabcontrols hwnd. On form_Load: TabParent.InsertItem 0, "Child Tab 1", TabChildTab.hwnd, 0 TabParent.InsertItem 1, "Child Tab 2", TabChildTab.hwnd, 0 On form resize: TabParent.move 500,500 TabChild.Move 100,100 'coordinates are relative to TabParent client area When you press a tab from the TabChild, the TabChild control moves out of the TabParent controls client area and its position (Left & Right) coordinates are relative to the form.
How can I stop this from happening? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Put second tabControl to picture box.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |