Support #6916
closedCall Form.c from wt-home
0%
Description
I need a little help. I take the example wt-Hompage and call the form.c under examples. This works. But I think somehow I'm not on the right instance.
Calling wt-home:
std::unique_ptr WtHome::form()
{
auto result = cpp14::make_unique();
Form *f = result->addWidget(cpp14::make_unique
());
f->setMargin(20);
return std::move(result);
}
std::unique_ptr WtHome::helloWorldExample()
{
return form();
}
Forms form.c
What doesn't work the date picker doesn't appear. the countrychange isn't called. the submit button isn't active. I think this just needs a little kick but I don't see it.
Files
Updated by Roel Standaert about 5 years ago
- Status changed from New to Closed
If you look at WtHome.C, there's a bunch of lines that say something like:
examplesMenu_->addTab(wrapView(...), ...)
That wrapView makes it so that the signals are not working. If you just directly call helloWorldExample()
it'll work correctly.
Updated by Karl Estermann about 5 years ago
Million Thank's, That was almost impossible for me to solve the problem. Since I am new with WT.