Ejemplo n.º 1
0
 public TextBox(Rectangle bounds, XAlignType xAlign = XAlignType.Left,
                YAlignType yAlign  = YAlignType.Top,
                float defaultScale = 1, int vertSpacing = 0, bool scrollable = false, TextBox scrollLink = null)
     : base(bounds)
 {
     Lines = new ObservableCollection <IDrawableText>();
     Lines.CollectionChanged += (sender, args) => SetScale();
     XAlign = xAlign;
     YAlign = yAlign;
     if (defaultScale > 1)
     {
         Logging.WriteLine(Logging.Level.Warning, "Scaling a font up by default makes it look bad.");
     }
     DefaultScale    = defaultScale;
     Scale           = defaultScale;
     VerticalSpacing = vertSpacing;
 }
Ejemplo n.º 2
0
 public static extern bool AddPane(IntPtr hWindow, IntPtr hPaneDest, IntPtr hPaneNew, XAlignType align);