![]() |
Menu SubItems |
Post Reply
|
| Author | |
jamesblast
Groupie
Joined: 15 June 2005 Status: Offline Points: 52 |
Post Options
Thanks(0)
Quote Reply
Topic: Menu SubItemsPosted: 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! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
jamesblast
Groupie
Joined: 15 June 2005 Status: Offline Points: 52 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
ianp
Moderator Group
Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2005 at 5:55am |
|
Try:
|
|
![]() |
|
jamesblast
Groupie
Joined: 15 June 2005 Status: Offline Points: 52 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 July 2005 at 6:10am |
|
this did it: Dim popupmenu as CommandBarPopup thank you! |
|
![]() |
|
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 |