Board index » cppbuilder » Smooth and Fast Text Scrolling
Sam Sherwi
![]() CBuilder Developer |
Sat, 16 Mar 2002 03:00:00 GMT
|
Sam Sherwi
![]() CBuilder Developer |
Sat, 16 Mar 2002 03:00:00 GMT
Smooth and Fast Text Scrolling
Hi All
I'm in need of some advice please. I am trying to achieve smooth text Anyway I tried various ways such as using TImage->CopyRect to achieve the Any help / sample code would be much appreciated. Thanks |
Sam Sherwi
![]() CBuilder Developer |
Sat, 16 Mar 2002 03:00:00 GMT
Re:Smooth and Fast Text ScrollingHi All I'm in need of some advice please. I am trying to achieve smooth text Anyway I tried various ways such as using TImage->CopyRect to achieve the Any help / sample code would be much appreciated. Thanks |
Michael Warn
![]() CBuilder Developer |
Sun, 17 Mar 2002 03:00:00 GMT
Re:Smooth and Fast Text ScrollingOn Tue, 28 Sep 1999 16:49:11 +0100, "Sam Sherwin" Quote<samsher...@pubtv.freeserve.co.uk> wrote: Canvas. As for the scrolling operation, you can just move the memory corresponding to the section to be scrolled. |
Phil Whela
![]() CBuilder Developer |
Mon, 18 Mar 2002 03:00:00 GMT
Re:Smooth and Fast Text ScrollingTry the following function ScrollDC. The hDC parameter should simply be Canvas->Handle. dx and dy are simple enough, and I just use NULL for the last four parameters. Good luck PHiL. The ScrollDC function scrolls a rectangle of bits horizontally and BOOL ScrollDC( HDC hDC, // handle of device context Parameters hDC Identifies the device context that contains the bits to be scrolled. dx Specifies the amount, in device units, of horizontal scrolling. This dy Specifies the amount, in device units, of vertical scrolling. This parameter lprcScroll Points to the RECT structure containing the coordinates of the scrolling lprcClip Points to the RECT structure containing the coordinates of the clipping hrgnUpdate Identifies the region uncovered by the scrolling process. ScrollDC defines lprcUpdate Points to the RECT structure that receives the coordinates of the rectangle Return Values If the function succeeds, the return value is nonzero. Remarks If the lprcUpdate parameter is NULL, Windows does not compute the update See Also InvalidateRgn, RECT, ScrollWindow -- QuoteSam Sherwin <samsher...@pubtv.freeserve.co.uk> wrote in message Quote> Hi All |