Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPShortcutBar - created,not reacting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPShortcutBar - created,not reacting

 Post Reply Post Reply
Author
Message
Matchay View Drop Down
Newbie
Newbie


Joined: 25 May 2005
Location: Germany
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matchay Quote  Post ReplyReply Direct Link To This Post Topic: CXTPShortcutBar - created,not reacting
    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

 

Back to Top
thodgson View Drop Down
Groupie
Groupie


Joined: 11 August 2003
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote thodgson Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Matchay View Drop Down
Newbie
Newbie


Joined: 25 May 2005
Location: Germany
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matchay Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Matchay View Drop Down
Newbie
Newbie


Joined: 25 May 2005
Location: Germany
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matchay Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Matchay View Drop Down
Newbie
Newbie


Joined: 25 May 2005
Location: Germany
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matchay Quote  Post ReplyReply Direct Link To This Post 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

 

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Matchay View Drop Down
Newbie
Newbie


Joined: 25 May 2005
Location: Germany
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matchay Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2005 at 8:51am

I'll say only THAAAAAAANKS!!!!

Of course it works now...

Regards!

Maciej

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.