Print Page | Close Window

Menu SubItems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2552
Printed Date: 19 November 2024 at 2:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu SubItems
Posted By: jamesblast
Subject: Menu SubItems
Date Posted: 08 July 2005 at 7:31am

Hello,

I add a Menu (to activemenubar), into this menu i add a xtpControlPopup (called popupmenu).

If i do this:

---

set popupmenu=commandbars.activemenubar.findcontrol(,id,,true)

popupmenu.Controls

---

the return value of the last line is its parent. so popupmenu.controls.item(1) could be the popupmenu itself. why is that? Is this a bug, or did i something wrong?

thank you!




Replies:
Posted By: Oleg
Date Posted: 09 July 2005 at 4:41am

Yes. it is waiting bahaviour.

I guess you need:

popupmenu.CommandBars.Controls.



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


Posted By: jamesblast
Date Posted: 11 July 2005 at 5:38am

hello,

i dont know what waiting behaviour is, but as popupmenu is a "CommandBarControl", it has no commandbars property.

I hope you can help me with this.

thank you



Posted By: ianp
Date Posted: 11 July 2005 at 5:55am

Try:

Dim popupmenu as CommandBarPopup

set popupmenu=commandbars.activemenubar.findcontrol(xtpControlPopup,id,,true)

popupmenu.CommandBars.Controls



Posted By: jamesblast
Date Posted: 11 July 2005 at 6:10am

this did it:

Dim popupmenu as CommandBarPopup

thank you!




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