Flat combobox in a command bar |
Post Reply |
Author | |
HotSouce
Newbie Joined: 15 March 2004 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 15 March 2004 at 5:19am |
Hello Does anybody have idea how to create a flat combobox in a command bar. The problem is that the standard flat combobox is not derived from CXTPControl class , but the Command bar shows only CXTPControl objects. I tried to use SetCommandBar method of the CXTPControlComboBox and as a parameter gave CXTPPopupBar object but the project crashes at run time. I hope there is a decision of that problem. Thanks in advance! HotSouce
|
|
Alex H.
Senior Member Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
|
Use this code : //---------------------------------------------------------- ----------------------------- if (lpCreateControl->nID == ID_SORT_FIELDSPLACEHOLDER && pToolBar->GetBarID() == IDR_SORT) m_wndComboSortOrders.SetFont(&xtAfxDat a.font); UpdateToolbarSortorders(); CXTPControlCustom* pControl = (CXTPControlCustom*)CXTPControlCustom::CreateObject(); lpCreateControl->pControl = pControl; ... CXTFlatComboBox m_wndComboSortOrders; Hope this helps :-)
|
|
kanitamildasan
Senior Member Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Hi, I have created CXTFontCombo in toolbar using CXTPControlCustom But CXTFontCombo's SetListStyle(xtFontBoth) method is not working ? It always shows like 'xtFontGUI' Thanks in advance
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
People! Have you ever run any our samples? see GUI_Office11 as sample of Font Combo in Toolbar. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
kanitamildasan
Senior Member Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Hello, Oleg , Sorry for not explaining my problem clearly Already I have gone through the examples you've mentioned But i am porting an application that uses the old CXTFontCombo i can change the view font through CXTFontCombo in CommandBar but m_wndComboFont.SetListStyle(xtFontBoth); is not working ??? thanks for spending your valuable time
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
kanitamildasan
Senior Member Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Hi, The DrawItem of CXTFontCombo is not called when we put it in CommandBar using CXTPControlCustom It's working correctly when fontcombo is in Dialog (FontCombo Sample) any suggestion???
|
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
kanitamildasan
Senior Member Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Hi, As per https://forum.codejock.com/forum_posts.asp?TID=3114&PN=1
Is it possible to use owner drawn CXTFontCombo in mainframe commandbar in 9.81 Pro ? |
|
Xtreme ToolkitPro 12.1.1
Win XP (32bit) - SP2 Visual C++ 6.0 SP 6 |
|
kanitamildasan
Senior Member Joined: 01 February 2006 Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Hi, Eureka !!! |
|
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 |