I am trying for :
1) A ScrollPanel.
2) As you scroll over (horizontally) one of the widget added to it
also scrolls.
3) The widget stays on a particular position in scroll window visible,
say Top:Left (50, 50).
for example the in figure below the here is label 'Hello', the client
will see it exactly on that top- left position, no matter whatever the
scroll position is.
_______________________________________
| ____ |
| |Hello| |
| |
| |
| |
|______________________________________|
|<_______________|<__>|________________>|
(
I have implemented a scroll handler here, and implemented this code:
int i = sp.getHorizontalScrollPosition();
int d = sp.getoffsetwidht();
double ratio = d/i;
so the relative x position would be width of widget in scrollpanel/
ratio; yet its not working exactly like that)
Any quick fix.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment