Bug #1011
WScrollBar->setValue()
| Status: | Closed | Start date: | 10/04/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Pieter Libin | % Done: | 0% | |
| Category: | - | |||
| Target version: | 3.2.0 |
Description
Dear Koen,
I was trying to set the vertical scrollbar position using the setValue method, but unfortunately it didn't work.
The tie method works great, but the setValue not.
WScrollArea *sa = new WScrollArea();
sa->setWidth( 100 );
sa->setHeight( 100 );
// adding WContainerWidget with text to WScrollArea
sa->verticalScrollBar()->setValue( 50 );
May be I've forgot something to type?
Could you give me any advise to solve this problem?
Here is my example:
http://redmine.webtoolkit.eu/attachments/463/proba.cpp
Thanks in advance!
Daniel
History
#1 Updated by Koen Deforche over 1 year ago
- Status changed from New to Assigned
- Assignee set to Pieter Libin
- Target version set to 3.2.0
Is probably a duplicate of #1001
#2 Updated by Pieter Libin over 1 year ago
This is fixed now.
Make sure to express the value in pixels though.
#3 Updated by Pieter Libin over 1 year ago
- Status changed from Assigned to Resolved
#4 Updated by Koen Deforche over 1 year ago
- Status changed from Resolved to Closed