예제 #1
0
        // Get the text from a pop-up dialog and then set it?
        public override bool setText(int x, int y, Visual_Flow_Form form)
        {
            bool successor_settext = false;
            bool before_settext    = false;
            bool after_settext     = false;

            bool textset = false;

            //if (over_Diamond(x,y))
            if (contains(x, y))
            {
                Control_Dlg CD = new Control_Dlg(this, form, true);
                CD.ShowDialog();
                textset = true;
                return(textset);
            }

            if (this.Successor != null)
            {
                successor_settext = this.Successor.setText(x, y, form);
            }

            if (this.before_Child != null)
            {
                before_settext = this.before_Child.setText(x, y, form);
            }
            if (this.after_Child != null)
            {
                after_settext = this.after_Child.setText(x, y, form);
            }

            return(successor_settext || before_settext || after_settext);
        }
예제 #2
0
        // Get the text from a pop-up dialog and then set it?
        public override bool setText(int x, int y, Visual_Flow_Form form)
        {
            bool successor_settext = false;
            bool left_settext      = false;
            bool right_settext     = false;

            bool textset = false;

            if (contains(x, y))
            {
                Control_Dlg CD = new Control_Dlg(this, form, false);
                CD.ShowDialog();
                textset = true;
                return(textset);
            }

            if (this.Successor != null)
            {
                successor_settext = this.Successor.setText(x, y, form);
            }

            if (this.left_Child != null && !this.is_compressed)
            {
                left_settext = this.left_Child.setText(x, y, form);
            }
            if (this.right_Child != null && !this.is_compressed)
            {
                right_settext = this.right_Child.setText(x, y, form);
            }

            return(successor_settext || left_settext || right_settext);
        }