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

Disable object focus? Options · View
ThePIman
#1 Posted : Tuesday, August 24, 2010 4:13:30 PM
Rank: Advanced Member
Groups: Member

Joined: 5/14/2009
Posts: 35
Location: UK
Hi,

I've got a PB trend that will update depending on which tag/object you select, but the selected tag/object gets a box drawn round it.
Also, on opening a .pdi file the top object has a box round it.

I'm pretty sure there must be some simple code to stop these objects being selected and boxes drawn round them, but I can't find it?

Cheers
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.
RJK Solutions
#2 Posted : Tuesday, August 24, 2010 6:38:12 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
Hello,

To remove the box from a symbol:

symbol.Selected = False

To remove all symbols from being selected:

SelectedSymbols.RemoveAll

Stick your code in your Display_Open event.

Smile
Principal Consultant
Real-Time Data Management @ Wipro Technologies
ThePIman
#3 Posted : Wednesday, August 25, 2010 9:53:17 AM
Rank: Advanced Member
Groups: Member

Joined: 5/14/2009
Posts: 35
Location: UK
Cheers Rhys.

You heading up north for the "UK users conference" next month?

.
RJK Solutions
#4 Posted : Wednesday, August 25, 2010 8:01:32 PM
Rank: Administration

Groups: Administration

Joined: 6/20/2008
Posts: 617
Location: Cheshire, United Kingdom.
The plan is to head up to Aberdeen, whether I can get clear for a day of the mountain of work I have outstanding is another matter Smile
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.