Back with clickable button.
This commit is contained in:
parent
3e53bd9e00
commit
70891ce7b4
20 changed files with 107 additions and 50 deletions
|
@ -57,10 +57,11 @@ void MediaTool::initializeViews()
|
|||
auto button = Button::Create();
|
||||
button->setLabel("Click!");
|
||||
button->setBounds(100, 200);
|
||||
button->setBackgroundColor(Color(0, 0, 255, 0));
|
||||
button->setBackgroundColor(Color(255, 0, 255, 1));
|
||||
|
||||
auto background_widget = Widget::Create();
|
||||
background_widget->setBackgroundColor(Color(0, 255, 255, 0));
|
||||
background_widget->setName("BackgroundWidget");
|
||||
background_widget->setBackgroundColor(Color(0, 255, 255, 1));
|
||||
|
||||
auto horizontal_spacer = HorizontalSpacer::Create();
|
||||
horizontal_spacer->addWidgetWithScale(std::move(button), 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue