private void ShowVisualPropertiesDialog() { VisualMsx v = Api.GetActiveVisual(); SpotfireToolbar.EditVisualProperties(v, SVP); return; }
private void VisualPropertiesMenuItem_Click(object sender, EventArgs e) { VisualMsx v = SpotfireSession.SpotfireApiClient?.GetActiveVisual(); SpotfireToolbar.EditVisualProperties(v, SVP); return; }
private void ShowVisualPropertiesDialog() { //WebBrowser.Document.MouseDown += new HtmlElementEventHandler(Document_MouseDown); VisualMsx v = SpotfireApiClient.GetActiveVisual(); SpotfireToolbar.EditVisualProperties(v, SVP); return; }
//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; }
private void ShowDataDialog() { SpotfireToolbar.EditDataProperties(SVP); return; }
private void DataMenuItem_Click(object sender, EventArgs e) { SpotfireToolbar.EditDataProperties(SVP); }