YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Disabling "Toolbar Manager" via VBA? Options · View
Lopton
#1 Posted : Saturday, November 12, 2011 1:24:54 AM
Rank: Newbie
Groups: Member

Joined: 2/15/2011
Posts: 4
Location: Los Angeles, CA
Hi,
I am trying to use VBA to turn off the "Toolbar Manager" from displaying everytime a PI display loads. Does anyone have any suggestions how to accomplish this? I have figured out how to hide the "toolbars" but the Toolbar Manager (accessabile via VIEW->Toolbar Manager) isn't an actual toolbar so I can't hide it that way.Cursing

Thanks in advance,
-Matt
Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
jhcoxx
#2 Posted : Tuesday, November 15, 2011 10:31:44 PM
Rank: Member
Groups: Member

Joined: 7/5/2010
Posts: 27
Location: Texas
Not at all sure if it would help, but in the VBIDE, under Tools | References (and you'll have to have the display in question open and the cursor in one of the subs or functions in some module of that .pdi), you might look to see ifyou have the OSIsoft.PB.Toolbars.Browser item checked. If so, try unchecking it and let us know if that helped any...

Good luck!
RJK Solutions
#3 Posted : Wednesday, November 16, 2011 12:16:58 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
It is not a toolbar but an docking window add-in that is a container for toolbars. So you need to unload the add-in, you can always load it again if you need to.

For i = 1 To Application.Addins.Count
If Application.Addins(i).ProgID = "OSIsoft.PB.ToolBarManager.Connect" Then
If Application.Addins(i).connect Then Application.Addins(i).connect = False
Exit For
End If
Next i
Principal Consultant
Real-Time Data Management @ Wipro Technologies
Users browsing this topic
Guest
Forum Jump  
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.