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