![]() |
CXTPShortcutBar - created,not reacting |
Post Reply
|
| Author | |
Matchay
Newbie
Joined: 25 May 2005 Location: Germany Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPShortcutBar - created,not reactingPosted: 25 May 2005 at 5:44am |
|
Hello! I am trying to work in CXTPShortcutBar (Outlook 2003 style) into quite a complicated environment that is a mixture of MFC and non-MFC dlls. I created a dll dynamically linked to MFC (an instance of CWinApp). I could create a CXTPFrameWnd-derived window and built in the CXTPShortcutBar control in there. The issue is the control gets created and is visible but no fully functional. I am not able to use the "Show More Buttons" - although it's not disabled when I click it just nothing happens, the shortcuts remain as icons on the bottom line and the bars with names don't appear above and it's not possible to draw the thin bar (pointed by the arrow on the picture - I didn't load icons for the shortcuts, but believe me, there are three buttons, and it works when done in the example application, it doesn't work in my dll) upwards to get all the shortcuts panes. I don't now what's going on. Everything seems to be properly initialized.
I would appreciate any idea. Best regards! Maciej
|
|
![]() |
|
thodgson
Groupie
Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 May 2005 at 11:45am |
|
Maybe you need to associate icons with the shortcuts. Perhaps, since you don't have icons, the size of the shortcuts are 0x0 pixels.
|
|
|
Tim H(http://www.ExclamationSoft.com)
Product: Xtreme Toolkit v13.1 Platform: Vista(x64)-SP1 Language: Visual C++ 6.0 Currently: Satisfied w/ Toolkit |
|
![]() |
|
Matchay
Newbie
Joined: 25 May 2005 Location: Germany Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2005 at 12:02pm |
|
Not really. I modified the example not to load icons and it works fine but my code in my dll doesn't work. Where is the point? Should I use special initialization routines like CoInitialize()? (tried out - doesn't work) It wouldn't make any sense it's not an ActiveX control though... Regards! Maciej |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 May 2005 at 12:06am |
|
Assign icons directly to shortcutbar: CXTPImageManager* pImageManager = new CXTPImageManager(); pImageManager->SetIcons(IDR_SHORTCTUBARICONS); m_wndShortcutbar.SetImageManager(pImageManager); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Matchay
Newbie
Joined: 25 May 2005 Location: Germany Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 May 2005 at 3:55am |
|
Hi! I did assign icons to the buttons. Now I noticed the obvious difference: look there is no default icon for "Configure Icons". This icon appears in the example app even if you don't load icons at all. At my dll it doesn't appear even when you load the icons! Sorry for confusion - the previous picture was taken from the example app not from mine. Mine looks like this:
Do you have any ideas? Regards! Maciej |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 May 2005 at 11:10am |
|
hmm. seems it can't find toolkit's
XTP_IDI_SHORTCUTS_EXPAND_NORMAL resource.
Try to add this line to your rc2 file of dll #include <XTToolkitPro.rc> |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Matchay
Newbie
Joined: 25 May 2005 Location: Germany Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 May 2005 at 2:11am |
|
Thanks! It helped but only partially :) Indeed the icon has appeared now but it's not possible to "Show more buttons" anyway. It's not greyed out but it doesn't work at all aswell as it's not possible to drag the thin bar upwards to show more buttons. I really run out of ideas. Is message routing broken down or sth... ? Regards Maciej
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 June 2005 at 1:39am |
|
may be you have no other buttons? :) ok, I think you must call m_wndBar.SetMinimumClientHeight(0); because it is 200 by default. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Matchay
Newbie
Joined: 25 May 2005 Location: Germany Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 June 2005 at 8:51am |
|
I'll say only THAAAAAAANKS!!!! Of course it works now... Regards! Maciej |
|
![]() |
|
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 |