Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Could anyone create a small example with the new ScrollArea?
|
|
|
|
Re: Could anyone create a small example with the new ScrollArea? [message #3009 is a reply to message #3008] |
Wed, 03 May 2006 11:14 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
Then I would kindly to ask you a brief description of how to use those methods in Ctrl.h
void ScrollView(const Rect& r, int dx, int dy);
void ScrollView(int x, int y, int cx, int cy, int dx, int dy);
void ScrollView(int dx, int dy);
void ScrollView(const Rect& r, Size delta) { ScrollView(r, delta.cx, delta.cy); }
void ScrollView(Size delta) { ScrollView(delta.cx, delta.cy); }
|
|
|
|
|
Re: Could anyone create a small example with the new ScrollArea? [message #3013 is a reply to message #3009] |
Wed, 03 May 2006 12:44 |
|
mirek
Messages: 14038 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Wed, 03 May 2006 05:14 | Then I would kindly to ask you a brief description of how to use those methods in Ctrl.h
void ScrollView(const Rect& r, int dx, int dy);
void ScrollView(int x, int y, int cx, int cy, int dx, int dy);
void ScrollView(int dx, int dy);
void ScrollView(const Rect& r, Size delta) { ScrollView(r, delta.cx, delta.cy); }
void ScrollView(Size delta) { ScrollView(delta.cx, delta.cy); }
|
I guess they are quite obvious after explaining one fundamental thing:
All those functions should be considered as variant of Refresh. Means, they are optimized Refresh where programmer asserts that portion of view area can be obtained by scrolling the current content.
CtrlCore then decides what to do. In fact, it can and does perform simple Refresh instead of scrolling if it fits better.
(BTW, there is still one important unimplemented optimization regarding child Ctrl move / view scroll....)
(BTW2, maybe we should also consider detection of "pane move" and implement it using scrolling optimization where possible).
Mirek
|
|
|
|
Re: Could anyone create a small example with the new ScrollArea? [message #3018 is a reply to message #3016] |
Wed, 03 May 2006 13:18 |
|
mirek
Messages: 14038 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Wed, 03 May 2006 07:00 |
luzr wrote on Wed, 03 May 2006 11:44 |
(BTW, there is still one important unimplemented optimization regarding child Ctrl move / view scroll....)
(BTW2, maybe we should also consider detection of "pane move" and implement it using scrolling optimization where possible).
Mirek
|
I think, those unimplemented optimizations have confused me most of all... I expected and want everything perfect in Ultimate++
|
So do I. However, in fact, those optimization will have zero effect on functionality, it will just affect speed/flickering on slower machines.
I will be really happy to have them, but they are very hard problems to implement - I will have to reserve at least 2 days to do so...
Mirek
|
|
|
Goto Forum:
Current Time: Fri Sep 20 06:54:39 CEST 2024
Total time taken to generate the page: 0.03131 seconds
|