You are amazing thx for your work)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
tg::Gui gui(window);
tg::Theme theme("Black.txt");
auto panel = tg::Panel::create();
panel->setRenderer(theme.getRenderer("Panel"));
panel->setSize(tg::bindSize(gui));
gui.add(panel);
auto menu = tg::MenuBar::create();
menu->setRenderer(theme.getRenderer("MenuBar"));
menu->addMenu("Menu");
menu->addMenuItem("Item One");
menu->addMenuItem("Item Two");
panel->add(menu); //gui.add(menu) for correct selection
auto radio = tg::RadioButton::create();
radio->setRenderer(theme.getRenderer("RadioButton"));
radio->connect("Checked", []() {printf("RadioButton Checked!\n"); });
radio->connect("Unchecked", []() {printf("RadioButton Unchecked!\n"); }); //Wrong! can't handle uncheck event (?)
radio->connect("Clicked", []() {printf("RadioButton Clicked!\n"); }); //Triggered every click. (its fine)
panel->add(radio);
Quote from: texus on 19 October 2016, 13:38:51Sounds good, like enumerator MenuBar::Direction {AUTO = 0, TOP, BOTTOM, LEFT, RIGHT};
maybe a flag could be added
Quote from: texus on 19 October 2016, 14:01:53
There are no lines in edit box and for setCaretPos and getCaretPos I have the same question as for TextBox.
Quote from: texus on 19 October 2016, 12:34:19
Thanks for such a detailed bug report btw.