"Deselect view item" programmatically

Hello,

I’ve looked in https://doc.developer.milestonesys.com/html/samples/smartclientview_windowtool_sample.html but I cannot find how to “Deselect view item” like we can do in the smart client.

I don’t want the blue colored border around the first view item when displaying a view full screen!

I’m opening views fullscreen programatically with MultiWindowCommand.OpenFullScreenWindow.

Kind regards,

Philippe

Let me clarify one thing. Does "Deselect view item like we can do in the smart client” mean that you select another view in Smart Client?

@Rie Kiuchi (Milestone Systems)​

I just launch the smart client then I have a background plugin that reacts on events and opens fullscreen windows on different screens. The PC where the smart client runs has 4 screens connected to it.

So far here are my showstoppers:

  1. When I open “view1” on screen 1 and “view2” on screen 2, how to deselect the first viewitem on each views?
  2. When using “Configuration.Instance.GetItemsByKind(Kind.Screen)”, how to find out where is each screen’s position? The only property is “Id”, I’d like to find a way to figure out that “screen 2” is the one at the bottom right.
  3. When using “Configuration.Instance.GetItemsByKind(Kind.Window)”, how do I find out on what physical screen this window is displayed? The idea is to be able to list the windows and find the one displays on “screen 2” so I can set the desired view on this window only.

It is impossible to deselect, even manually you cannot do it.

-

We believe questions two and three are a repeat of –

https://developer.milestonesys.com/s/question/0D53X00007qlizJSAQ/find-on-which-screen-a-window-is-displayed

We are investigating whether we can find a way because there is no simple property that you can read or similar.

Thanks.

I disagree that you cannot deselect, you can bind a key in the smart client to “Deselect view item” and press that. It works fine, I’ve used it many times.

For questions 2 & 3 yes, it was a repeat because I had no answers. I’ll follow up on these in the other thread.

@Rie Kiuchi (Milestone Systems)​ In the Smart Client you can bind a key to “Deselect View Item” in the settings. I want trigger that action programmatically.

Ok found it:

https://doc.developer.milestonesys.com/html/MIPhelp/class_video_o_s_1_1_platform_1_1_messaging_1_1_set_selected_view_item_data.html

https://doc.developer.milestonesys.com/html/MIPhelp/class_video_o_s_1_1_platform_1_1_messaging_1_1_move_command.html#ab090eccf1dec3b430f8bed834b483364

You send “Deselect” as a MoveCommand when doing SetSelectedViewItemData