With REALbasic v4.5 you can easily add a striped background to your
listboxes using the new CellBackgroundPaint event. Here's an example:
Function CellBackgroundPaint(g As Graphics, row As Integer, column As
Integer) As Boolean
If row Mod 2=0 then
g.foreColor=RGB(158,238,255)
else
g.foreColor=RGB(255,255,255)
end if
g.FillRect 0,0,g.width,g.height
End Function
--
Geoff Perlman
President and CEO
REAL Software, Inc.
512-328-7325 x711 (voice)
512-328-7372 (fax)
- - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
To unsubscribe from the Tips list, send an email to
<mailto:realbasic-tips-off at lists dot realsoftware dot com>
Return-Path: <realbasic-tips at lists dot realsoftware dot com>
Received: from realsoftware.com (209.198.132.67) by realsoftware.com with
ESMTP (Eudora Internet Mail Server 3.1.3) for <realbasic-tips at lists dot
realsoftware dot com>;
Mon, 21 Oct 2002 11:36:31 -0500
Date: Mon, 21 Oct 2002 11:36:31 -0500
Mime-Version: 1.0 (Apple Message framework v546)
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.546)
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Subject: REALbasic Tip: Getting the user's short name on Mac OS X
From: Geoff Perlman <geoff at realsoftware dot com>
To: "REALbasic Tips" <realbasic-tips at lists dot realsoftware dot com>
Message-Id: <410DAD0A-E52B-11D6-8300-0003936A3560 at realsoftware dot com>
Status: RO
Personalizing your software to the user can give your application a
friendlier feel. For example, welcoming the user by name when they
launch
your application is one of those little touches that people often
notice.
You can get the user's short name on Mac OS X easily with the following
REALbasic code:
Dim shortname as string
Shortname = PreferencesFolder.parent.parent.name
Thanks to Christian Dorn for providing this tip.
--
Geoff Perlman
President and CEO
REAL Software, Inc.
512-328-7325 x711 (voice)
512-328-7372 (fax)
- - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
To unsubscribe from the Tips list, send an email to
<mailto:realbasic-tips-off at lists dot realsoftware dot com>
|