Button constructor

Button({
  1. int? id,
  2. Window? parent,
  3. required String label,
  4. int windowStyles = WINDOW_STYLE.WS_TABSTOP | WINDOW_STYLE.WS_VISIBLE | WINDOW_STYLE.WS_CHILD | BS_DEFPUSHBUTTON,
  5. int x = CW_USEDEFAULT,
  6. int y = CW_USEDEFAULT,
  7. int width = CW_USEDEFAULT,
  8. int height = CW_USEDEFAULT,
  9. int? bgColor,
  10. bool defaultRepaint = true,
  11. void onCommand(
    1. int wParam,
    2. int lParam
    )?,
})

Implementation

Button(
    {super.id,
    super.parent,
    required String label,
    super.windowStyles = WINDOW_STYLE.WS_TABSTOP |
        WINDOW_STYLE.WS_VISIBLE |
        WINDOW_STYLE.WS_CHILD |
        BS_DEFPUSHBUTTON,
    int super.x = CW_USEDEFAULT,
    int super.y = CW_USEDEFAULT,
    int super.width = CW_USEDEFAULT,
    int super.height = CW_USEDEFAULT,
    super.bgColor,
    super.defaultRepaint = true,
    this.onCommand})
    : super(
        windowClass: buttonWindowClass,
        windowName: label,
      );