![]() |
CXTPTabControl |
Post Reply
|
| Author | |
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPTabControlPosted: 12 September 2005 at 3:35pm |
|
The OnNotify callback for CXTPTabControl appears to have a major problem, or at least it is working completely different then the OnNotify callback for the CXTFlatTabCtrl and CXTTabCtrl. When processing the TCN_SELCHANGE notification, if you issue a SetCurSel(value), where value is not the same as the CurSel value received in the OnNotify, you receive another immediate OnNotify notification. This goes into a infinite loop! This does not happen in the CXTTabCtrl and CXTFlatTabCtrl. If I select the following for the color scheme, the luna color for blue is correct, but not for olive and silver. m_TabCtrl.GetPaintManager()->SetAppearance(xtpTabAppearan ceVisualStudio2005); I set the color via the following call: void CTabSwitch::SetTheme(int theme,int scheme) Edited by Kenneth |
|
![]() |
|
Kenneth
Senior Member
Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 September 2005 at 12:58pm |
|
The behavior of the CXTPTabControl OnNotify callback is really bizarre. The developer really needs to implement a OnNotify callback and monitor when the TCN_SELCHANGE is being sent. It defies any logic I have seen, including sending TCN_SELCHANGE notifications when tabs are being inserted and when a SetCurSel is issued.
|
|
![]() |
|
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 |