Project

General

Profile

Actions

Support #6916

closed

Call Form.c from wt-home

Added by Karl Estermann about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/21/2019
Due date:
% Done:

0%

Estimated time:

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

Form.C (6.96 KB) Form.C Form Datei Karl Estermann, 02/21/2019 01:30 PM
Form.h (1.5 KB) Form.h Karl Estermann, 02/21/2019 01:30 PM
WtHome.C (5.91 KB) WtHome.C Karl Estermann, 02/21/2019 01:30 PM
WtHome.h (1.47 KB) WtHome.h Karl Estermann, 02/21/2019 01:30 PM
Bildschirmfoto 2019-02-21 um 13.28.59.png (215 KB) Bildschirmfoto 2019-02-21 um 13.28.59.png This is the Idee, but the submit, country,datepicher does not work Karl Estermann, 02/21/2019 01:30 PM
Actions #1

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.

Actions #2

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.

Actions

Also available in: Atom PDF