protected virtual void Create() { _chartItem = new vtkChartXY(); _textBox = new FloatingTextBox(); vtkChartXY chart = (vtkChartXY)_chartItem; _lAxis = chart.GetAxis((int)vtkAxis.Location.LEFT); vtkTextProperty titleProps = _lAxis.GetTitleProperties(); titleProps.SetOpacity(0.0); _bAxis = chart.GetAxis((int)vtkAxis.Location.BOTTOM); titleProps = _bAxis.GetTitleProperties(); titleProps.SetOpacity(0.0); _rAxis = chart.GetAxis((int)vtkAxis.Location.RIGHT); titleProps = _rAxis.GetTitleProperties(); titleProps.SetOpacity(0.0); _tAxis = chart.GetAxis((int)vtkAxis.Location.TOP); titleProps = _tAxis.GetTitleProperties(); titleProps.SetOpacity(0.0); }
private void ItemValueBox_DragDrop(object sender, DragEventArgs e) { FloatingTextBox ftb = sender as FloatingTextBox; ftb.text = DragFileToName; FileInfoBox.Instance.showFileInfo(DragFileToName); }
public void SpeechBubble(string message, string path, float positionX, float positionY, float angleDegrees, float height, float width, float textX, float textY, float textSize) { //if (positionY > Screen.currentResolution.height || positionY < 0) //{ // positionY = Screen.currentResolution.height / 2; //} //if (positionX > Screen.currentResolution.width || positionX < 0) //{ // positionX = Screen.currentResolution.width / 2; //} Vector3 pos = new Vector3(0, 0, 0); Quaternion rot = Quaternion.Euler(0, 0, 0); FloatingTextBox textfield = Instantiate(textfieldPrefab, pos, rot, transform.gameObject.transform) as FloatingTextBox; //Debug.LogFormat("{0} {1}", textfield.transform.position.x, textfield.transform.position.x); //messages.Add(); height = height / 100; width = width / 100; textfield.panel.sprite = Resources.Load <Sprite>(path); textfield.panel.transform.localScale = new Vector3(height, width, 0); textfield.panel.transform.localPosition = new Vector3(positionX, positionY, 0); textfield.message.transform.localScale = new Vector3(1 / height, 1 / width, 0); textfield.message.transform.localPosition = new Vector3(textX, textY, 0); textfield.message.fontSize = textSize; //textfield.transform.localScale = new Vector3(height/100, width/100, 1); //textfield.transform.position = new Vector3(positionX, positionY, 0); textfield.GetComponentInChildren <TextMeshProUGUI>().text = message; }
void selectPathToBeValue(FloatingTextBox ftb) { FolderBrowserDialog dilog = new FolderBrowserDialog(); dilog.Description = "请选择文件夹"; DialogResult re = dilog.ShowDialog(); if (re == DialogResult.OK || re == DialogResult.Yes) { ftb.text = dilog.SelectedPath; } }
bool selectFileToBeValue(FloatingTextBox ftb) { OpenFileDialog opFileDialog = new OpenFileDialog(); opFileDialog.Title = "请选择一个文件"; if (opFileDialog.ShowDialog() == DialogResult.OK) { ftb.text = opFileDialog.FileName; return(true); } return(false); }
private void valueBox_rButtonClicked(FloatingTextBox THIS, oTextBox oTextBox, EventArgs e) { THIS.ShowFloating(myZiku.exPand(myZiku.variableToSave(oTextBox.Text, ZIKU.DataBase.Config.Instance.Path), ZIKU.DataBase.Config.Instance.Path)); }