realbasic-nug
[Top] [All Lists]

Re: Looking for Canvas vs. Container Control custom control

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Looking for Canvas vs. Container Control custom control
From: Tim Jones <tjmac at tolisgroup dot com>
Date: Sat, 30 Jun 2007 16:36:36 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <F2C4CF3A-7814-4D79-918E-C013A15EC123 at tolisgroup dot com> <D2AA7D09-B4CD-497A-8358-FF7D6D9A30AE at tolisgroup dot com>
Hmmm, is it just me or is control clipping on a canvas broken in 2007r3?

I just tried an experiment with a generic canvas with the following  
code in the canvases open event:

Dim x As Integer
Dim bbJob As BevelButton

For x = 1 to 25
   bbJob = New BevelButton1
   bbJob.Parent = Canvas1
   bbJob.Caption = "Button " + Str(x)
   bbjob.Top = BevelButton1(0).Top + (22 * x)
Next

The buttons drew right out of the bottom of the canvas with no regard  
for clipping.

Am image drawn in the paint event is properly clipped.

Anyone else seeing this?

Tim
--
Tim Jones
tjmac at tolisgroup dot com

On Jun 30, 2007, at 3:25 AM, Tim Jones wrote:

> On Jun 30, 2007, at 3:20 AM, Tim Jones wrote:
>
>> Hi Folks,
>>
>> I'm looking to implement a custom control class that will display a
>> custom view into a stack of customer buttons (canvases).
>
> 'customer' should be 'custom' (hey, it's 3:25 in the morning ... :-) )
>
>> What I want  to do is to be able to create zero to n buttons in a
>> scrollable view.  The control must be able to add of remove buttons
>> and provide vertical scrolling to allow the user to access all of
>> the current buttons, regardless of the number.
>>
>> 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?
>>
>> Thanks,
>>
>> Tim
>> --
>> Tim Jones
>> tjmac at tolisgroup dot com
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>

_______________________________________________
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>