The value of ClientControl.Instance.ShownWorkSpace represents the workspace tab for the main window only.
Is there a way to get the workspace tab for floating windows?
We are able to subscribe to MessageId.SmartClient.ShownWorkSpaceChangedIndication notifications to be told when the workspace tab is changed, and use the ‘sender’ parameter to determine which window the command is for, however this message is only sent when the tab is changed, and we would like to know which tab is currently selected at startup.
Thanks in advance.
We will do some investigation here at Milestone and get back on this..
There is a VideoOS.Platform.Messaging.MessageId.SmartClient.GetCurrentWorkspaceRequest.
This was introduced in 2018R2 MIP SDK and Smart Client..
Thanks for looking in to this! Much appreciated.
Is there also a way to change the workspace for a floating window?
Tryed multiple things without success. Example:
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.ShowWorkSpaceCommand, workSpaceItem.FQID), floatingWindow.FQID, null);
There is unfortunately currently no way of changing the workspace in floating windows from code.
Best regards,
Peter
That’s a pity. Thanks for the answer anyway.
Best regards,
Nuno