Page 1 of 1
Get the current Front and Back colours?
Posted: Mon Apr 26, 2004 5:49 pm
by dmoc
So how to?
Posted: Mon Apr 26, 2004 5:51 pm
by Karbon
Of what - a gadget, a window?
Posted: Mon Apr 26, 2004 11:02 pm
by dmoc
Sorry, should have been clearer: the colours set by BackColor() and FrontColor(). I've worked around it now but still curious because to clear an image I am using box(x, y, w, h, rgb(r,b,g)). Before this however I have a proc which sets the colour scheme, ie, SetColourScheme(Idx.l) for preset colours. Now if I want to clear only part of the image I'd like to use something like box(x, y, w, h, GetBackColour()). Alternative (or in addition) it would be nice to have Front/BackColor(rgb(r,g,b)). So I could...
bg = RGB(br, bg, bb)
fg = RGB(fr, fg, fb)
...
BackColor(bg): FrontColor(fg)
...
box(x, y, w, h, bg)
...
BackColor(fg): FrontColor(bg) ; Swap fg/bg colours
...
box(x, y, w, h, bg)