realbasic-nug
[Top] [All Lists]

Re: Looking for Canvas vs. Container Control custom control

To: REALbasic Mailing List <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Looking for Canvas vs. Container Control custom control
From: "Scott Crick (Lists)" <lists at searchwaresolutions dot com>
Date: Sat, 30 Jun 2007 09:43:27 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: Ace7JQStQyHv6CcYEdyJkQAWy9FnoA==
Thread-topic: Looking for Canvas vs. Container Control custom control
On 6/30/07 5:20 AM, "Tim Jones" <tjmac at tolisgroup dot com> wrote:

> I've examined doing this with a scrollable canvas, but 'm concerned
> with the flicker that I witness on Windows and Linux.  This led me to
> a container control as the host control, but I'm lost as to how to
> implement the vertical scroll operation.
> 
> Anyone using container controls for a similar function or have ideas
> of how to implement this?

Have you thought about just using a single canvas and creating the image on
the fly and drawing it as needed?

Simply create an image when you need to draw that contains all the buttons
you need where you need them placed and draw that image to the canvas. You
can use the mouse down/up events and their X, Y parameters to determine if a
button was clicked and even update the image to provide button feedback.

I've done this before and it worked quite well and was much less frustrating
that canvas scrolling.

Sincerely,

Scott
-- 
SearchWare Solutions
Simply Great Software
http://www.searchwaresolutions.com

Webthoughts: http://www.searchwaresolutions.com/other/weblog/


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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