http://redmine.emweb.be/http://redmine.emweb.be/favicon.ico?16934085252018-04-23T12:01:11ZRedmineWt - Support #6348: Wt::WFileUpload::setDisplayWidgethttp://redmine.emweb.be/issues/6348?journal_id=199112018-04-23T12:01:11ZRoel Standaertroel@emweb.be
<ul><li><strong>Assignee</strong> set to <i>Korneel Dumon</i></li></ul> Wt - Support #6348: Wt::WFileUpload::setDisplayWidgethttp://redmine.emweb.be/issues/6348?journal_id=199122018-04-23T12:36:25ZKorneel Dumonkorneel@emweb.be
<ul></ul><p>Hi Max,</p>
<p>you're right that the progressbar functionality is lost when you set a displaywidget. So if you want to handle it yourself I suggest showing it when you call the WFileUpload::upload() method.</p>
<p>Korneel</p>
Wt - Support #6348: Wt::WFileUpload::setDisplayWidgethttp://redmine.emweb.be/issues/6348?journal_id=199132018-04-24T08:11:15ZMaximilian Kleinert
<ul></ul><p>Thank you Korneel,</p>
<p>now the ProgressBar is back again.</p>
<p>Max</p>
Wt - Support #6348: Wt::WFileUpload::setDisplayWidgethttp://redmine.emweb.be/issues/6348?journal_id=199272018-05-02T12:44:44ZMaximilian Kleinert
<ul><li><strong>File</strong> <a href="/attachments/2779">main.cpp</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2779/main.cpp">main.cpp</a> added</li></ul><p>Hi,</p>
<p>as a next step I tried to put the ProgressBar and the Button into a HBoxLayout. Unfortunately if the Button is inside a HBoxLayout the setDisplayWidget has no effect.<br><br>
See the attached code example.<br><br>
This examples also demonstrates the problem described in<br><br>
<a href="https://redmine.webtoolkit.eu/boards/2/topics/14942" class="external">https://redmine.webtoolkit.eu/boards/2/topics/14942</a><br><br>
using progress-bar-danger progress-bar-success validation markups.</p>
<p>Thank you<br><br>
Max</p>
Wt - Support #6348: Wt::WFileUpload::setDisplayWidgethttp://redmine.emweb.be/issues/6348?journal_id=199302018-05-02T14:27:23ZKorneel Dumonkorneel@emweb.be
<ul></ul><p>I checked your example and the problem is that when a container has a layout, you can no longer use the WContainerWidget::addWidget method. I will see about adding a warning in Wt when this is done.<br><br>
So for your example you should either add the WFileUpload to the layout or some other place in the widget tree.</p>
<p>Korneel</p>
Wt - Support #6348: Wt::WFileUpload::setDisplayWidgethttp://redmine.emweb.be/issues/6348?journal_id=199312018-05-02T15:37:43ZMaximilian Kleinert
<ul></ul><p>Hi Korneel,</p>
<p>thanks again!</p>
<p>Max</p>