Re: FPW2.6a Radio button colour [Reply]

From: Andrew Howell (ajh_at_work)
Date: 12/22/04


Date: Wed, 22 Dec 2004 12:29:58 -0000

valery_k wrote:
>> From:Andrew Howell (ajh@work)
>> Subj:FPW2.6a Radio button colour
>> Date:2004-12-17 00:49:17 PST
>
>> I've often meant to ask this but never got around to it.
>> Can I control the background fill colour of a radio button in
>> FPW2.6+Win9x?
>
> Take a look into FoxProW source code... :)

Thanks for an unexpected answer..
I don't have the source [and if I did I wouldn't really understand it] ;)

>
> ... various source observations ...
>

Nice hacking skills :)

>
> I think there is a slight internal difference
> between runtime ESL and development EXE modules
> when loading system wide resources.

I've just tested all the fonts on my machine. There are a few observations:

If the radio button is drawn in 3D at design time then the colour cannot be
changed and the button will be in 3D at runtime.
If the radio button is drawn in 2D at design time then the colour can be
changed but sometimes the button is rendered in 3D (back to white again) at
runtime. Most 2D fonts at design time are 2D (and coloured correctly) at
runtime.

The vast majority of fonts are 3D/white at both design and runtime. There
are trutype fonts that work, truetype fonts that don't work, bitmap fonts
that work and bitmap fonts that don't work. Arial and Courier New are the
only two strange ones that appear OK at design time but then look wrong at
runtime.

Meanwhile the loathed Comic Sans works OK [Hrmmmph] :-(

> In any case MS is no more supporting FPW2.6
> so the only way to find answers is learning
> source code behaviour ourselves.
> The generic source code layout was
> occasionally provided with the very first
> release of FPW 2.6.

Where did you get all that code from? Was it on a disk or something?

--
Regards
Andrew Howell