realbasic-plugins
[Top] [All Lists]

Re: Background coloring of a control

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Background coloring of a control
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Sun, 23 Jan 2005 14:12:22 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
on 1/23/05 8:46 AM, Einhugur Software at bjorn at einhugur dot com wrote:

> Is there any reason why you cant use the BackColor just exactly where
> you use it?
> 
> That is setting the back color only just before the call that uses it ?

Yes, this will work, but it needs you to set the window.hasbackcolor to
true, set the backcolor, let the update begin and after that restore the
backcolor w/ window.hasbackcolor to false. Unfortunately, it does not work
for composite windows. The whole window will get the color of the window as
determined by RB (when setting the window.hasbackcolor from the plugin), and
BackColor is not honored.

Oh, I wish the graphics class had a backcolor property, or better, the
RectControl (REALcontrolOwnsBackColor?).

RS, is this a sensitive request, and are there any ideas to workaround a
HIView's backcolor? (I mean, how did you get the backcolor to work in an
EditField?)

Alfred

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

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