Buttons have no new features compared to the Base object. They are useful for semantic purposes and have slightly different default settings.
Buttons, by default, differ from Base object in the following ways:
Added to the default group
Default height and width set to
Parts and Styles¶
LV_PART_MAINThe background of the button. Uses the typical background style properties.
LV_OBJ_FLAG_CHECKABLEflag is enabled and the object is clicked. The event happens on transition to/from the checked state.
Learn more about Events.
Note that the state of
LV_KEY_ENTER is translated to
See the events of the Base object too.
Learn more about Keys.