Support #3736
closedWSlider does not appear
0%
Description
I'm trying a very simple example for WSlider widget. The root has only one container and this only have one WSlider with the example code I fond for WSlider in the web side with some few and small changes, this is
Wt::WContainerWidget *container = new Wt::WContainerWidget();
Wt::WSlider *scaleSlider = new Wt::WSlider(Wt::Vertical,container);
scaleSlider->setMinimum(0);
scaleSlider->setMaximum(100);
scaleSlider->setValue(10);
scaleSlider->setTickInterval(5);
scaleSlider->setTickPosition(Wt::WSlider::TicksRight);
scaleSlider->resize(50, 300);
root()->addWidget(container);
When I deploy the server, in the web browser, does not mind if it is FireFox or Chrome, There is nothing. Sometimes, depends of the values of the resize, i can see som gray lines but that's it. I know that actually the Slider is there because If I add a WText and link the output value with the text of the WText, the WText value change when I click some points close to dhe gray lines.
Thanks very much.
Updated by Wim Dumon almost 10 years ago
- Status changed from New to Feedback
Did you deploy Wt's resources? Do you see any 404 errors in your browser's debugger? (inspect element, switch to network tab, then press reload).
Wim.
Updated by Johann Gonzalez almost 10 years ago
m sorry I'm just begining with WT, what do you mean with deploy Wt's resources? .
Yes actually there is 2 404 enot found errors.
wt.css
moz-transitions.css
Updated by Wim Dumon almost 10 years ago
The folder called 'resources' in the wt package has to be copied (or linked on unix, if you prefer) to the docroot directory (whatever you specify with ---docroot= with the built-in httpd). This folder contains css, images, ... that the browser needs to properly render Wt applications.
Wim.
Updated by Koen Deforche over 9 years ago
- Tracker changed from Bug to Support
- Status changed from Feedback to Resolved
- Assignee set to Wim Dumon
Updated by Koen Deforche over 9 years ago
- Status changed from Resolved to Closed