![]() |
IntelligentMenus |
Post Reply
|
| Author | |||
dEUs
Newbie
Joined: 19 March 2004 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: IntelligentMenusPosted: 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 |
|||
![]() |
|||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|||
![]() |
|||
dEUs
Newbie
Joined: 19 March 2004 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 March 2004 at 12:47pm |
||
|
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;
Where? Is it possible to just download the changed files?
eMail-Adress? Edited by dEUs |
|||
![]() |
|||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|||
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||
![]() |
|||
dEUs
Newbie
Joined: 19 March 2004 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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 |
|||
![]() |
|||
dEUs
Newbie
Joined: 19 March 2004 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 March 2004 at 9:40am |
||
|
Could still need some help here!
|
|||
|
Best regards,
Daniel Hilgarth |
|||
![]() |
|||
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
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. |
|||
![]() |
|||
dEUs
Newbie
Joined: 19 March 2004 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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 |
|||
![]() |
|||
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|||
![]() |
|||
dEUs
Newbie
Joined: 19 March 2004 Location: Germany Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 March 2004 at 12:46pm |
||
|
Finally! Thanks a lot :)
|
|||
|
Best regards,
Daniel Hilgarth |
|||
![]() |
|||
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 |