Example #1
0
        private void ShowVisualPropertiesDialog()
        {
            VisualMsx v = Api.GetActiveVisual();

            SpotfireToolbar.EditVisualProperties(v, SVP);

            return;
        }
Example #2
0
        private void VisualPropertiesMenuItem_Click(object sender, EventArgs e)
        {
            VisualMsx v = SpotfireSession.SpotfireApiClient?.GetActiveVisual();

            SpotfireToolbar.EditVisualProperties(v, SVP);

            return;
        }
Example #3
0
        private void ShowVisualPropertiesDialog()
        {
            //WebBrowser.Document.MouseDown += new HtmlElementEventHandler(Document_MouseDown);

            VisualMsx v = SpotfireApiClient.GetActiveVisual();

            SpotfireToolbar.EditVisualProperties(v, SVP);

            return;
        }
Example #4
0
        //public void SetupMessageSnatcher()
        //{
        //	MessageSnatcher = new MessageSnatcher(WebBrowser);
        //	MessageSnatcher.RightMouseClickOccured += BrowserControlRightMouseClickOccured;
        //}

        /// <summary>
        /// Rt-click picked up by MessageSnatcher
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        //private void BrowserControlRightMouseClickOccured(object sender, EventArgs e)
        //{
        //	DelayedCallback.Schedule(ShowVisContextMenu, e, 200); // schedule callback, need 200 ms to keep Spotfire selection rectangle from appearing
        //	return;
        //}

        private void ShowVisContextMenu(object state)
        {
            Point p = WindowsHelper.GetMousePosition();

            // Setup the menu

            VisualMsx v = SpotfireSession.SpotfireApiClient?.GetActiveVisual();

            if (SpotfireToolbar.CanEditVisualProperties(v))
            {
                VisualPropertiesMenuItem.Visible = true;
            }

            else
            {
                VisualPropertiesMenuItem.Visible = true;
            }

            WebBrowserRtClickContextMenu.Show(p);

            return;
        }
Example #5
0
 private void ShowDataDialog()
 {
     SpotfireToolbar.EditDataProperties(SVP);
     return;
 }
Example #6
0
 private void DataMenuItem_Click(object sender, EventArgs e)
 {
     SpotfireToolbar.EditDataProperties(SVP);
 }