Bug 7888 - SWT: *NEED* a way to scroll the StyledText widget hor & ver by a specified # of pixels
Summary: SWT: *NEED* a way to scroll the StyledText widget hor & ver by a specified # ...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-18 11:14 EST by Michael Duchesneau CLA
Modified: 2002-01-21 18:28 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Duchesneau CLA 2002-01-18 11:14:29 EST
First, this is a strategic issue for us. There are several critical features
of our application that cannot be implemented with these enhancements.

We need public methods for scrolling the StyledText by a specified number
of pixels. Currently there are public methods that allow us to scroll to
the nearest line and character but this isn't precise enough for our
application.

There already is a method for pixel-based horizontal scrolling, scrollHorizontal
() but it's not public. The support for pixel-based vertical scolling is already
in the class but the class needs a public scrollVertical(int numVerPixels) 
signature.

Note that I set the Version to 1.0. We'll take whatever version this is 
available with this addition. As I noted earlier this is a strategic issue
for us.

Michael Duchesneau
Sr. Software Engineer
Rational Software
aren't public.
Comment 1 Lynne Kues CLA 2002-01-21 10:24:06 EST
Suggestion is to add API for setHorizontalPixel, setTopPixel that scroll *to* 
the specified pixel position, not by the number of pixels as suggested.  We 
already have getHorizontalPixel and getTopPixel. We also have the line 
based/character based setTopIndex and setHorizontalIndex so the above names and 
behavior would be consistent with existing API.  Miked - we assume this will be 
sufficient for you - right?
Comment 2 Michael Duchesneau CLA 2002-01-21 10:45:46 EST
Yes, scrolling *to* a specified pixel is sufficient. Actually, it's what I 
need! I wasn't thinking clearly when I requested methods for scrolling by a 
specified number of pixels.

Thanks,
Michael Duchesneau
Rational Software
Comment 3 Knut Radloff CLA 2002-01-21 18:28:11 EST
Fixed as proposed by Lynne Kues above. Will be in build > 20020121.