Bug #1011

WScrollBar->setValue()

Added by Anonymous over 1 year ago. Updated over 1 year ago.

Status:ClosedStart date:10/04/2011
Priority:NormalDue 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

Also available in: Atom PDF