CreateControlCustom destroy issues |
Post Reply |
Author | |
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Posted: 10 January 2009 at 10:00am |
Hi, Strange have work.... Do you have 12.x version ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
hkhan
Newbie Joined: 09 January 2009 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Folks,
We've just started using XT, and we're having some issues. We create a Windows Slider control, and then dock it using the following: void Foo::AddThumbWheel(CXTPRibbonGroup* pGroup, AppCommand* command, int width, bool startGroup) { // Create the Slider control and add it to the bar. CSliderCtrl* wndSlider = new CSliderCtrl(); wndSlider->Create(TBS_HORZ | TBS_NOTICKS | WS_CHILD | WS_VISIBLE, CRect(0, 0, width, 19), this, command->GetID()); wndSlider->SetRangeMax(255); CXTPControlCustom* pControlSlider = CXTPControlCustom::CreateControlCustom(wndSlider); pControlSlider->SetBorders(0,1,0,0); // (right, top, left, bottom) pGroup->Add(pControlSlider, command->GetID()); } The problem is, when pGroup is destroyed (via m_pRibbonBar->RemoveTab( tab ); ), the slider does not disappear, but stays on the ribbon bar. Are we adding the control incorrectly? Thanks much, folks. I've spent a day tearing my hair out over this. |
|
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 |