Foreground Color not Doing Anything

The place for threads about TimoSoft ButtonControls.
Post Reply
pgrimmer
Cadet
Posts: 3
Joined: 08 Jun 2013, 23:24

Foreground Color not Doing Anything

Post by pgrimmer »

I am running VB6 on Windows 10 (in Administrator mode) and I am not using a manifest.

When I use a CommandButton and I set the foreground color to something other than the default black, nothing happens.

Am I doing something wrong or do I need to do something else to make it work? Thanks.

Paul
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: Foreground Color not Doing Anything

Post by TiKu »

The native button control does not seem to support a custom forecolor. Therefore the ForeColor property affects owner-drawn button controls only. This is also stated in the online help:
http://www.timosoft-software.de/onlineh ... 9e9b1a72f5

If you know how to achieve a custom forecolor using sub-classing, please let me know. I never managed to make it work, at least not in a way that has no drawbacks.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
Post Reply