Skip to content
James Bremner edited this page Apr 4, 2019 · 5 revisions

Button

Doxygen description of button

Usage:

// Construct button to be displayed on panel
nana::button btn( panel );

// Locate button in panel
btn.move( { topleftX, topleftY, width, height } );

// show text on button
btn.caption( "Press here" );

// click event handler
btn.events().click([&status]
{
     status.caption("You pressed");
});
Clone this wiki locally