![]() |
CXTTabCtrl and CXTResizeFormView |
Post Reply
|
| Author | |
Martin
Newbie
Joined: 26 April 2005 Location: Netherlands Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTTabCtrl and CXTResizeFormViewPosted: 08 July 2005 at 5:31am |
|
Hello, I have a couple of problems and general questions: 1. When creating tabs with the CXTTabCtrl and using the method AddView with CXTResizeFormView the last added tab is also the active tab. I want to make the first tab the active tab. I tried this but it has a painting problem in my formview:
Q: How can I set the first tab as active one AND make sure the tab gets painted correctly? 2. When I create a new dialog based on CFormView I can edit the properties of my dialogs, e.g. create a variable for a textbox of the type CEdit. When I subclass the dialog to use CXTResizeFormView instead of CFormView I cannot do this anymore. Q: How can I somehow let the VIsual Studio know that CXTResizeFormView is in fact derived from CFormView so I can use the normal dialog handling? Now I have to first change all references to CXTResizeFormView back to CFormView before I can edit the variables. Now some general questions: 1. Can I also use the method as outlined above to get a pointer to a view in the tabcontrol to access member variables and functions if I typecast them to my own formview class? 2. When I add a formview to my tabcontrol the dialog is created "sunken" which makes a rather terrible effect. How do I get rid of that "sunken" effect so the formview appears more as a part of the tabcontrol? T.I.A, Martin Edited by Martin |
|
![]() |
|
Martin
Newbie
Joined: 26 April 2005 Location: Netherlands Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2005 at 4:46am |
|
I somehow don't have the paint problem anymore when using the code outlined above. So hopefully this one is solved. The other problems remain unfortunately.... (I am particularly interested in answers to these questions): 1. How can I somehow let the Visual Studio know that CXTResizeFormView is in fact derived from CFormView so I can use the normal dialog handling? Now I have to first change all references to CXTResizeFormView back to CFormView before I can edit the variables. 2. When I add a formview to my tabcontrol the dialog is created "sunken" which makes a rather terrible effect. How do I get rid of that "sunken" effect so the formview appears more as a part of the tabcontrol (and as a normal tab)? Any help is greatly appreciated. Thanks, |
|
![]() |
|
Martin
Newbie
Joined: 26 April 2005 Location: Netherlands Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2005 at 6:49am |
|
And to answer one of my questions myself (I asked it too soon, because I didn;t test it myself yet): You can use this code to access the members of the formview:
pView now holds a pointer to all the available members in the CMyFormView class. Hope this is helpful to anyone.
|
|
![]() |
|
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 |