Beispiel #1
0
        public void Shutdown()
        {
            Label?.Shutdown();
            Label = null;

            _Rectangle?.Shutdown();
            _Rectangle = null;
        }
Beispiel #2
0
        public Button(Button button, D3DX direct)
        {
            textColor = button.textColor;
            draw      = button.draw;
            position_ = button.position_;
            _width    = button._width;
            _height   = button._height;

            Label      = new Text(button.Label, direct);
            _Rectangle = new Shapes.Rectangle(button._Rectangle, direct);
            _Click     = button._Click;
            _App       = button._App;
            _App.Screen(out screenWidth_, out screenHeight_);
        }
Beispiel #3
0
        public bool Initialize(D3DX direct)
        {
            _Rectangle = new TopoCS.Shapes.Rectangle();
            if (!_Rectangle.Initialize(direct.Device))
            {
                return(false);
            }
            _Rectangle.twoWay = true;

            Label = new Text();
            if (!Label.Initialize(direct))
            {
                return(false);
            }
            Label.SetText(direct, " ");
            Label.color = textColor;
            _Click      = _App.fPTR;

            return(true);
        }