Put default toolbar in plugin!

So, I have my plugin and I have show toolbar = true

Is possible to put toolbar in the top of window?

And how I can add icon for get screenshot? I have only print icon

is possible?

if is not possible, there are alternative that I can use?

Thanks

Giuseppe

I explain better my problem with image:

Please help me to resolve it.. and if possible to put toolbar in top window.

My init is:

 Public Overrides Sub Init()
            _imageViewerControl = ClientControl.Instance.GenerateImageViewerControl(WindowInformation)
            panel2.Controls.Add(_imageViewerControl)
            _imageViewerControl.Dock = DockStyle.Fill
            _audioPlayerControl = ClientControl.Instance.GenerateAudioPlayerControl(WindowInformation)
            panel2.Controls.Add(_audioPlayerControl)
            SetUpApplicationEventListeners()
            _imageViewerControl.EnableMouseControlledPtz = True
            _imageViewerControl.EnableMousePtzEmbeddedHandler = True
            _imageViewerControl.EnableDigitalZoom = False
            _imageViewerControl.EnableScrollWheel = True
            panelHeader.BackColor = ClientControl.Instance.Theme.ViewItemHeaderColor
            panelHeader.ForeColor = ClientControl.Instance.Theme.ViewItemHeaderTextColor
            ClientControl.Instance.RegisterUIControlForAutoTheming(panelMain)
            Dim fqidString As String = _viewItemManager.GetProperty(ClientControl.EmbeddedCameraFQIDProperty)
 
            If fqidString IsNot Nothing Then
                _selectedCameraItem = Configuration.Instance.GetItem(New FQID(fqidString))
                FillCameraSelection()
                FillMicrophoneSelection()
            End If
            InLive = EnvironmentManager.Instance.Mode = Mode.ClientLive
        End Sub

This is the SCToolbarPlugin sample - https://doc.developer.milestonesys.com/html/index.html?base=samples/sctoolbar.html&tree=tree_search.html?search=sctoolbarplugin

And please see SCToolbarPluginDefinition

   public override Image Icon

   {

                                get { return VideoOS.Platform.UI.Util.ImageList.Images\[VideoOS.Platform.UI.Util.SDK\_VSIx\]; }

   }

Hi, yes I saw this example, but I need to have default toolbar with default icon..

I dont want make new icon in toolbar..

or If no possible to have default bottom toolbar with default icon, if I make button for get snapshot.. how I can save it in directory that is in default menu settings? like icon “save snapshot”? can you tell me code that use snaphot icon?

The first image is the default toolbar for the built-in camera vierw item, this is unfortunately not available if you have your own view item.

ok and in second image… when I click in print icon, I have popup for stamp..

is possible to modify this.. so when I click in stamp, I got screenshot of camera? and automatically save in the path that is defined in the settings menu .. how should I write the code, if possible?

or if I make my own button in my view item, how should I write the button code, to save automatically in the path that is defined in the settings menu??

Thanks

You will be able to make your own button in your view item, please explore the same sample.

Yes I saw it, but in my view item I have camera and also other item… I need to make screenshot only of camera picture.. and in this sample I no have it..

I need code of this icon to take screenshot only of camera.. path for save it, is the same that I decided in default settings menu..

menu

Unfortunately there is no built-in screenshot button. Please explore the sample and make your own one.

I have an idea that implementing this you might utilize:

Platform.Client.ImageViewerControl.GetCurrentDisplayedImageAsBitmap()

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