Print Page | Close Window

Tabcontrol within a Tabcontrol?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2290
Printed Date: 17 November 2024 at 5:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabcontrol within a Tabcontrol?
Posted By: Stilki
Subject: Tabcontrol within a Tabcontrol?
Date 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?




Replies:
Posted By: Oleg
Date Posted: 30 May 2005 at 12:08am
Put second tabControl to picture box.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net