realbasic-plugins
[Top] [All Lists]

Background coloring of a control

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Background coloring of a control
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Sat, 22 Jan 2005 21:46:23 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
I am having problems getting a background color to show. I am most likely
overlooking something, and searched at many places. Can someone help out
here?:

For example:

    RGBColor rgb;
    WindowRef wref = REALGetWindowHandle(data->windowContainer);
    GetPortBackColor(GetWindowPort(wref), &rgb);

rgb will be {0xFFFF, 0xFFFF, 0xFFFF}

    colr.red = 125;
    colr.blue = 23;
    colr.green = 50;
    RGBBackColor(&colr);

and to check:

    GetPortBackColor(GetWindowPort(wref), &rgb);

rgb will have the colr values, suggesting that the port is already set to
the wref. I guess that everything is done correctly, but why does not it
show? 

And on another note, what's the reason that the graphics class or the canvas
control doesn't have a back-color property, like the window class?

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