realbasic-nug
[Top] [All Lists]

YASQ (yet another scrolling question)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: YASQ (yet another scrolling question)
From: Michael Hackney <mhackney at mac dot com>
Date: Sun, 27 Feb 2005 19:12:41 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hello all,

I want to make sure that I am taking the easy road on this task. Basically, I have a Canvas subclass with a vertical scrollbar positioned in a window. I draw in to the Canvas in the Paint event to dynamically create a document with DrawString. I keep track of the height and when I am done drawing I set the height of the Canvas to the calculated height. (Basically the text is a report generated from the results of a DB query). Now, I want to be able to scroll this. I've looked at the examples online at some of the resource sites but they all demonstrate scrolling using a Picture. So the question is, what is the best approach for this? Should I create a Picture and then draw my contents to it exactly like I draw on to the Canvas and then do the scrolling like the examples or is there a more "direct" way to draw to the Canvas?

thanks in advance,
Michael

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>