mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-08-23 02:59:55 +00:00
Merge pull request #21 from scotty007/fix/send-button-callback
Add send button callback in LvMessageView
This commit is contained in:
@@ -95,6 +95,10 @@ void LvMessageView::createUI(lv_obj_t* parent) {
|
||||
lv_obj_set_style_text_color(sendLbl, lv_color_hex(Theme::PRIMARY), 0);
|
||||
lv_label_set_text(sendLbl, "Send");
|
||||
lv_obj_center(sendLbl);
|
||||
lv_obj_add_event_cb(_btnSend, [](lv_event_t* e) {
|
||||
auto* self = (LvMessageView*)lv_event_get_user_data(e);
|
||||
self->sendCurrentMessage();
|
||||
}, LV_EVENT_CLICKED, this);
|
||||
}
|
||||
|
||||
void LvMessageView::destroyUI() {
|
||||
|
||||
Reference in New Issue
Block a user