Preview

image

 

  • AutoSize feature (automatically adjust width/height)
  • Supports Icons (with or without text)

 

Usage

// create Button control (set width/height to 0, to activate AutoSize)
Button myButton = new Button(new Rectangle(50, 50, 0, 0), "My Button Text");

// assign an icon
myButton.Icon = guiManager.Theme.IconHome;

// assign OnClick event
myButton.OnClick += (sender) => { this.Exit(); };

// add Button to our Window
myWindow.Controls.Add(myButton);

Last edited Apr 4, 2012 at 2:12 AM by qisur, version 7

Comments

No comments yet.