![]() |
CXTPControlCustom in a TearOff-able popup |
Post Reply
|
| Author | |
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPControlCustom in a TearOff-able popupPosted: 03 March 2006 at 11:09pm |
|
Hi, Adding CXTPControlCustom to a TearOff-able CXTPPopupBar makes problems.
Here is a sample code that tries to add CXTDateTimeCtrl if (lpCreateControl->nID == ID_BUTTON_TEXT && pToolBar->GetBarID() == IDR_MAINFRAME) CXTPControlPopup* pPopup = CXTPControlPopup::CreateControlPopup(xtpControlSplitButtonPo pup); CXTPPopupBar* pColorBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars()); if (!m_date.Create(DTS_UPDOWN, CRect(0, 0, 100, 22), this, 12345)) CXTPControlCustom* pControlDate = CXTPControlCustom::CreateControlCustom(&m_date); pControlDate->SetFlags(xtpFlagManualUpd ate); pColorBar->GetControls()->Add(pContr olDate, 12345); pColorBar->SetTearOffPopup(_T("Text Color"), 1005, 0); pColorBar->InternalRelease(); lpCreateControl->pControl = pPopup; return TRUE; thanks in advance |
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2006 at 10:47am |
|
Yes, it's true. CXTPControlCustom can't work with Tear Off popups.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 March 2006 at 12:44am |
thanks for the reply
|
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
Ark42
Senior Member
Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 March 2006 at 11:20am |
|
I use a custom control derived class to put a slider bar on a toolbar which can be torn-off, customized, duplicated, etc with no problems.
https://forum.codejock.com/forum_posts.asp?TID=1763 |
|
![]() |
|
kanitamildasan
Senior Member
Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 March 2006 at 10:18pm |
|
Hi, Ark42 , Thanks for the reply Did you tried my above code ? Adding CXTDateTimeCtrl to popup is just for sample i'm looking for to add CXTColorSelector to popup with tear-off so i can get user color feature easily along with the flexibility of adding/removiong buttons of popuptoolbars to get popups like in powerpoint (fill color,line color in drawing toolbar) |
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
![]() |
|
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 |