Change background colour on User defined event

Hello

I am sure i have seen somewhere using maybe the Toolbar Plugin a way to change the background colour in the smart client when a user defined event is triggered.

What i am wanting to achieve is when a user defined event is activated the background behind the current view changes colour and then changes back again when a second user defined event is activated.

Regards

I am guessing that what you want is equivalent of the blue frame you get when you select a camera view item in the Smart Client view.

There is no method to control this for the built-in camera view item.

Hi Bo

I thought i had seen a video maybe in the elearning section using the toolbar plugin included in the SDK with the Red Green and Blue buttons however instead of the buttons in the toolbar it was a user defined event that was changing the background colour?

Regards

I believe you have seen Smart Client Toolbar Plug-in sample. Using this sample you so change the background color of a view item. I could be wrong, but I assumed you wanted to make changes to the built-in camera view item and not a view item you have developed yourself.

So let me state; you can manipulate almost everything on your own view item, you cannot to my knowledge change the frame on the built-in camera view item.

If you do have a view item, my assumption was false, and you can manipulate this.

Explore the sample - http://doc.developer.milestonesys.com/html/index.html?base=samples/sctoolbar.html&tree=tree_1.html

Hi Bo

Yes this is the sample i am looking at, is there a way i can trigger the background colour change when a user defined event is activated via a Rule?

Or would this need developing as the sample is only in the smart client

Regards

You can detect when a user-defined event is triggered, and it does matter if the event is triggered by a user or a rule. To detect when a user-defined event is triggered subscribe to NewEventIndication, the Smart Client Overlay on event plugin sample does this. (Perhaps simpler see how the Alarm and Event Viewer sample does this.)