public void SetDrawData(IDrawer2D drawer, string text, Font font, Font hintFont,
                                Anchor horAnchor, Anchor verAnchor, int width, int height, int x, int y)
        {
            ButtonWidth = width; ButtonHeight = height;
            Width       = width; Height = height;
            CalculateOffset(x, y, horAnchor, verAnchor);

            Text = text;
            if (Password)
            {
                text = new String('*', text.Length);
            }
            this.font     = font;
            this.hintFont = hintFont;

            DrawTextArgs args = new DrawTextArgs(text, font, true);
            Size         size = drawer.MeasureSize(ref args);

            Width      = Math.Max(ButtonWidth, size.Width + 15);
            textHeight = size.Height;
        }