Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Tabcontrol within a Tabcontrol?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabcontrol within a Tabcontrol?

 Post Reply Post Reply
Author
Message
Stilki View Drop Down
Groupie
Groupie


Joined: 27 May 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stilki Quote  Post ReplyReply Direct Link To This Post Topic: Tabcontrol within a Tabcontrol?
    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?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2005 at 12:08am
Put second tabControl to picture box.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.