realbasic-nug
[Top] [All Lists]

Re: cellbackgroundpaint problem

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: cellbackgroundpaint problem
From: Norman Palardy <npalardy@great-white-software.com>
Date: Sat, 27 Sep 2008 12:09:14 -0600
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 27-Sep-08, at 7: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?

In older versions if you ever wanted to create the look of an Apple listbox where alternate rows were colored whether they had data or not you couldn't

So RB "paints" all visible rows so the check you have is necessary and correct in versions released since 2005

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