Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - IntelligentMenus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IntelligentMenus

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


Joined: 19 March 2004
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote dEUs Quote  Post ReplyReply Direct Link To This Post Topic: IntelligentMenus
    Posted: 20 March 2004 at 2:31pm

Hi,

The Intelligent Menus are very nice. But there is one problem: MenuItems, which have the style PopUp can't be hidden, because they don't have an ID! Is there a work-around for this?

And: Is there a possibility to set the time, after which the hidden items are shown? It's way to short ...

Third: There is a bug, if all items in a submenu are hidden. It doesn't look very nice ...

Best regards,

Daniel Hilgarth



Edited by dEUs
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 22 March 2004 at 11:50pm

1. You must assign the ID in the OnCreate Control handle.

2. added.

3. Please send me screenshot. I can't reproduce.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dEUs View Drop Down
Newbie
Newbie


Joined: 19 March 2004
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote dEUs Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2004 at 12:47pm

Originally posted by oleg oleg wrote:

1. You must assign the ID in the OnCreate Control handle.

How to?

After the following piece of code, I tried 3 different versions:

// Create the menubar.

CXTPCommandBar* pMenuBar = pCommandBars->SetMenu(_T("Menu Bar"), IDR_MAINFRAME);

pMenuBar->SetFlags(xtpFlagIgnoreSetMenuMessage);

Version1:

pCommandBars->GetMenu()->GetSubMenu(0)->ModifyMenu(6,MF_BYPOSITION,100000);

Version2:

pMenuBar->GetMenu()->GetSubMenu(0)->ModifyMenu(6,MF_BYPOSITION,100000);

Version3:

GetMenu()->GetSubMenu(0)->ModifyMenu(6,MF_BYPOSITION,100000);

All three failed, because GetMenu() returned NULL;

Originally posted by oleg oleg wrote:

2. added.

Where? Is it possible to just download the changed files?

Originally posted by oleg oleg wrote:

3. Please send me screenshot. I can't reproduce.

eMail-Adress?



Edited by dEUs
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 23 March 2004 at 1:40pm

1.

CXTPControlPopup* pFilePopup = (CXTPControlPopup*)pMenuBar->GetControl(0);

pFilePopup->GetCommandBar()->GetControl(6)->SetID(I DR_EEE);

 

2. Please wait next release

3. support@codejock.com

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dEUs View Drop Down
Newbie
Newbie


Joined: 19 March 2004
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote dEUs Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2004 at 1:52pm

1. If I assign an ID to a menuitem with subitems, it will be hidden, as it should. but if it comes visible, it is grayed (deactivated) ... Do you have something to help me out again?

2. When will it be released?

3. Done

Back to Top
dEUs View Drop Down
Newbie
Newbie


Joined: 19 March 2004
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote dEUs Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2004 at 9:40am
Could still need some help here!
Best regards,
Daniel Hilgarth
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2004 at 10:22am
1.  Make sure you have the  enabled and visible properties set to true.

2.  Next release is coming out next week.
Back to Top
dEUs View Drop Down
Newbie
Newbie


Joined: 19 March 2004
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote dEUs Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2004 at 10:32am

Well, I did! It doesn't work for me ... Did you test it?

Code:

CXTPControlPopup* pFilePopup = (CXTPControlPopup*)pMenuBar->GetControl(0);

pFilePopup->GetCommandBar()->GetControl(6)->SetID(ID_FILE_EXPORT_POPUP);

pFilePopup->GetCommandBar()->GetControl(6)->SetEnabled(TRUE);

pFilePopup->GetCommandBar()->GetControl(6)->SetVisible(TRUE);

Best regards,
Daniel Hilgarth
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 26 March 2004 at 12:30pm

You must Enable it in OnUpdateCommandUI handler, or set xtpFlagManualUpdate flag

pFilePopup->GetCommandBar()->GetControl(6)->SetFlag(xtpFlagManualUpdate )

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dEUs View Drop Down
Newbie
Newbie


Joined: 19 March 2004
Location: Germany
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote dEUs Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2004 at 12:46pm
Finally! Thanks a lot :)
Best regards,
Daniel Hilgarth
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.156 seconds.