WorkSpace Plugin add "calendar"

Hi,

I would like to add a new tab: “MyTab” next to “live” and “recording” Tab.

I need to add a calendar and some photos in MyTab

I saw the example that add a camera in a rectangle object and insert it into the View:

Dictionary<String, String> properties = new Dictionary<string, string>();

properties.Add(“CameraId”, cameraItem.FQID.ObjectId.ToString());

ViewAndLayoutItem.InsertBuiltinViewItem(0, ViewAndLayoutItem.CameraBuiltinId, properties);

but how i can insert a calendar?

how i can insert a list of photos in the view?

Can you help me?

For developing a workspace plugin the best sample is the Smart Client Workspace plugin sample.

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/scworkspace/readme.html&tree=tree_1.html

If you see the sample it includes two examples of user controls, basically you can develop your own user controls. So you could develop an advanced calendar user control.

If you do not require very advanced stuff but instead could just use text try to insert a TextBuiltInId instead of a CameraBuiltInId and exchange the properties for a Text property..

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_view_and_layout_item.html&tree=tree_search.html?search=textbuiltinid

(I fear it is too simple for a calendar though.)

For a different perspective on what I am suggesting, and how to InsertBuiltinViewItem using other builtIn controls as the text control, you could explore the Smart Client View and Windows tools plugin sample, the View Edit tab.

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/scviewandwindow/readme.html&tree=tree_1.html

ok,

thanks :slight_smile: