Project

General

Profile

Actions

Support #3736

closed

WSlider does not appear

Added by Anonymous about 9 years ago. Updated about 9 years ago.

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

0%

Estimated time:

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.

Actions #1

Updated by Wim Dumon about 9 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.

Actions #2

Updated by Johann Gonzalez about 9 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

Actions #3

Updated by Wim Dumon about 9 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.

Actions #4

Updated by Koen Deforche about 9 years ago

  • Tracker changed from Bug to Support
  • Status changed from Feedback to Resolved
  • Assignee set to Wim Dumon
Actions #5

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF