Custom Widgets
Base Hierarchy
Box Widget
Interactive Widget
Event System
Event Description
- Mount
- BeforeDraw
- Draw
- DrawComplete
- Unmount
Color & Position
Positions
Source
// Custom Widget
public class NewWidget : TWidgetBase
{
...
// On Draw Event
public override void Draw(Graphics g)
{
g.Draw(new Line());
}
...
}
Output
──────────────────────────────────────────────────────
Cursors
During the drawing, the position
Source
// Custom Widget
public class NewWidget : TWidgetBase
{
...
// On Draw Event
public override void Draw(Graphics g)
{
g.Draw(new Line());
}
...
}
Output
──────────────────────────────────────────────────────