1. Color questions

Hi euphorians!

I'm creating a big application related with pharmacy studies and i have
a problem.I'm using David's brilliant Win32lib under Windows 3.1!!!!
with
a Pentium200 & win32S.It works fine but...when i setBackgroundColor of
text
in a window,the color it's always white!  how can i display Black
letters with
gray background on a gray window??

How can i ceate those cool-looking 3D group boxes,checks,radios and
combos? do i have to use an additional dll?

---------------------------
I would really like to know if there's someone interested on developing
a
chemistry program with me,Kinda Chemdraw & chem3D.Of course,fully
written in Euphoria 2.0

Regards to everybody,
Luis

new topic     » topic index » view message » categorize

2. Re: Color questions

Luis wrote:

> but...when i setBackgroundColor of text
> in a window,the color it's always white!

I've fixed the problem. Add the constants:

    constant
        TRANSPARENT = 1,
        OPAQUE      = 2

and the following code to the end of the putFontIntoHDC function:

    -- use transparent mode when writing text
    if not c_func(xSetBkMode, {hdc, TRANSPARENT} ) then
        -- unable to set background mode
        warnErr( "SetBkMode in putFontIntoHDC failed." )
    end if

This should take care of the problem.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu