Einhugur macOS Bridge plugin. |

# NSButton.Constructor Constructor

Constructor that constructor button from string and clickHandler.

Constructor(
textValue as String,
clickHandler as ButtonClickDelegate)

#### Parameters

textValue
  The text to display on the button.
clickHandler
  Click handler for the button.

#### Remarks

Example click handler setup:/b>

Dim button as NSButton = new NSButton("Some button", addressof Button1Click)
Then the function to receive the click would look like this:
Private Sub Button1Click()
MsgBox "Button1 click"
End Sub

#### See Also

NSButton Class