realbasic-nug
[Top] [All Lists]

Re: cellbackgroundpaint problem

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: cellbackgroundpaint problem
From: Terry Ford <tmford@shaw.ca>
Date: Sat, 27 Sep 2008 10:53:03 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <49641.202.56.7.169.1222523131.squirrel@mail.btcl.net.bd>
References: <49641.202.56.7.169.1222523131.squirrel@mail.btcl.net.bd>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Sep 27, 2008, at 6:45 AM, osb@btcl.net.bd wrote:

Hello,

first day using 2008-4 from 5.5.5 so please be patient...

In a 5.5.5 project I had the cellbackgroundpaint event of a listbox with
these 2 lines:

dim i as Integer
i = me.cellTag(row,1).IntegerValue

Running that project in 2008-4 I get an outofbound exception, unless I write:

    if row > me.ListCount-1 then
      Return true
    end if
    i = me.cellTag(row,1).IntegerValue

May be I'm overlooking some new behavior. Can somebody explain me the
reason of the exception being raised?

The new behaviour is that, since Rb 2005, it now paints the background of all possible rows visible in the Listbox. In 5.5.5 it only painted the populated ones (ListCount-1). There is a way to prevent this painting but I never bother with it so I can't tell you off the top of my head. It's quite possibly the code you used. :)

Terry


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