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

ActiveX Commandbar.FrindControl

 Post Reply Post Reply
Author
Message
tomhermolle View Drop Down
Newbie
Newbie
Avatar

Joined: 22 October 2003
Location: United Kingdom
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote tomhermolle Quote  Post ReplyReply Direct Link To This Post Topic: ActiveX Commandbar.FrindControl
    Posted: 22 October 2003 at 6:53am

I am unable to get this method to return anything, and the documentation is less than helpful in terms of its specification of the parameters required (i.e. it says certain arguments are of type Variant and gives no documentation of possible values...).

I have tried

dim mycb as CommandBar

set mycb = CommandBars.ActiveMenuBar.FindControl(,1)

where 1 is an ID of a control, but mycb is always empty.

Am I missing something or is this a bug?

Cheers

Tom

Back to Top
lansetaosheng View Drop Down
Newbie
Newbie


Joined: 30 October 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote lansetaosheng Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 8:43pm

 I have  the same question

 waiting on line  !

 

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: 03 November 2003 at 6:11am

Declare mycb as ICOmmandBarControl.

Add Recursive parameter:

 

Dim mycb as ICommandBarControl

Set Control = CommandBars.ActiveMenuBar.FindControl(, 1, , True)

Back to Top
rdtcgriffin View Drop Down
Newbie
Newbie


Joined: 18 March 2004
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdtcgriffin Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2004 at 9:38pm

I have tried the FindControl method and it works for menus added that are of xtpControlButton type. But whenever I try to find a control that is of type xtpControlPopup, the method returns me Nothing.

Is there another method that I need to use?

Thanks!

 

Back to Top
asd123456789 View Drop Down
Newbie
Newbie


Joined: 12 May 2004
Location: China
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote asd123456789 Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2004 at 12:09am
Originally posted by rdtcgriffin rdtcgriffin wrote:

I have tried the FindControl method and it works for menus added that are of xtpControlButton type. But whenever I try to find a control that is of type xtpControlPopup, the method returns me Nothing.

Is there another method that I need to use?

Thanks!

 

 I have  the same question!

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2004 at 6:02am
Back to Top
asd123456789 View Drop Down
Newbie
Newbie


Joined: 12 May 2004
Location: China
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote asd123456789 Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2004 at 2:31am

I finding the control for set the Enbaled and the Visible.

I want do it like this:

Commandbars.ActiveMenuBar.Controls(ID_RUN_LOAD_TABLES).Enabl ed=TRUE

Commandbars.ActiveMenuBar.Controls(ID_RUN_LOAD_TABLES).Visib le=TRUE

Reference ActiveBar please.

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