Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Menu SubItems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Menu SubItems

 Post Reply Post Reply
Author
Message
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Topic: Menu SubItems
    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!

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: 09 July 2005 at 4:41am

Yes. it is waiting bahaviour.

I guess you need:

popupmenu.CommandBars.Controls.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2005 at 5:55am

Try:

Dim popupmenu as CommandBarPopup

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

popupmenu.CommandBars.Controls

Back to Top
jamesblast View Drop Down
Groupie
Groupie


Joined: 15 June 2005
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamesblast Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2005 at 6:10am

this did it:

Dim popupmenu as CommandBarPopup

thank you!

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.203 seconds.