Print Page | Close Window

IntelligentMenus

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=553
Printed Date: 14 May 2024 at 7:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: IntelligentMenus
Posted By: dEUs
Subject: IntelligentMenus
Date 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




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


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



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

mailto:3.support@codejock.com - 3. support@codejock.com



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


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



Posted By: dEUs
Date Posted: 26 March 2004 at 9:40am
Could still need some help here!

-------------
Best regards,
Daniel Hilgarth


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


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


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


Posted By: dEUs
Date Posted: 26 March 2004 at 12:46pm
Finally! Thanks a lot :)

-------------
Best regards,
Daniel Hilgarth



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