Print Page | Close Window

CXTPShortcutBar - created,not reacting

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2282
Printed Date: 09 November 2025 at 5:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPShortcutBar - created,not reacting
Posted By: Matchay
Subject: CXTPShortcutBar - created,not reacting
Date Posted: 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

 




Replies:
Posted By: thodgson
Date 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 - http://www.ExclamationSoft.com )
Product: Xtreme Toolkit v13.1
Platform: Vista(x64)-SP1
Language: Visual C++ 6.0
Currently: Satisfied w/ Toolkit


Posted By: Matchay
Date 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



Posted By: Oleg
Date 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


Posted By: Matchay
Date 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



Posted By: Oleg
Date 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


Posted By: Matchay
Date 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

 



Posted By: Oleg
Date 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


Posted By: Matchay
Date Posted: 03 June 2005 at 8:51am

I'll say only THAAAAAAANKS!!!!

Of course it works now...

Regards!

Maciej




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net