Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-10

Windows 10 force any non-white background color to White

10 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dennis

I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white.

Now my customer is complaining the bright white is hurting his eyes.

Can anyone help? I googled and the only articles is about changing the title bar color, not the form's color.

Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161014/d01352aa/attachment.html>

Reply by email

Giuliano Colla
to Dennis

Il 14/10/2016 11:10, Dennis via Lazarus ha scritto:

I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white.

My best suggestion is to encourage your customer to downgrade to Windows 7. Hewlett Packard, when you select a professional grade laptop or desktop, as of today is still providing Windows 7 professional preinstalled, and includes an upgrade DVD to Windows 10, which you may decide to use, but at your own risk. They know better!

Giuliano

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161014/8abf0639/attachment.html>

Reply by email

shoKwave
to Dennis: I have a program written in lazarus running normally in windows 7. When run in windows…
Dennis wrote
I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white.

Hi,

I can't confirm that for Windows 10 1610 32bit with Lazarus 1.6/ FPC 3.0 and Lazarus/FPC Trunk. Form shows colour correctly (see pic) and frame seems to be transparent.

Ingo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161014/199f2680/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2989 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161014/199f2680/attachment.png>

Reply by email

Mattias Gaertner
to Dennis: I have a program written in lazarus running normally in windows 7. When run in windows…
Show quoted text 8 lines
I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white. Now my customer is complaining the bright white is hurting his eyes. Can anyone help? I googled and the only articles is about changing the title bar color, not the form's color.

This works here: When I set the Form1.Color to clGreen I see green background on Win10.

Mattias

Reply by email

Sven Barth

Am 14.10.2016 11:10 schrieb "Dennis via Lazarus" <

: I have a program written in lazarus running normally in windows 7. When run in windows 10, the green color of the Frame/Form is changed by

Windows 10 to white.

Can you reproduce this in a small example program so that differences regarding the project settings can be avoided?

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161014/ceadc649/attachment.html>

Reply by email

Dennis
to Sven Barth
Sven Barth wrote 17 lines
Am 14.10.2016 11:10 schrieb "Dennis via Lazarus" < <mailto:>>: > > I have a program written in lazarus running normally in windows 7. > When run in windows 10, the green color of the Frame/Form is changed by Windows 10 to white. Can you reproduce this in a small example program so that differences regarding the project settings can be avoided? Regards, Sven

Attached is a simple test project. Within the zip are 2 screen capture of the same program running in win 7 64 bit and Win 10 64 bit. The project was created with Lazarus 1.7; fpc 3.1.1 SVN 52643.

Thanks so much for help.
Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161015/3f21b61f/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: test.zip
Type: application/x-zip-compressed
Size: 140414 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161015/3f21b61f/attachment-0001.bin>

Reply by email

Werner Pamler
to Dennis
Dennis wrote
Attached is a simple test project. Within the zip are 2 screen capture of the same program running in win 7 64 bit and Win 10 64 bit. The project was created with Lazarus 1.7; fpc 3.1.1 SVN 52643.

For me, the frame is white in both Win7 and Win10. Did you deactivate themes in Win7? Your screenshot looks like this. This would switch to the old Win95 style, and give you back control over the color of many controls. In Lazarus, you can turn theme support off by unchecking "Use manifest file to enable themes" in the Project Options. This works also in Win10 - see attached screenshot:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161015/544df783/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: japomoglnlcmlhma.png
Type: image/png
Size: 6417 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161015/544df783/attachment.png>

Reply by email

Dennis
to Werner Pamler
Werner Pamler wrote 16 lines
Am 15.10.2016 um 12:04 schrieb Dennis via Lazarus: > Attached is a simple test project. Within the zip are 2 screen > capture of the same program running in win 7 64 bit and Win 10 64 bit. > The project was created with Lazarus 1.7; fpc 3.1.1 SVN 52643. For me, the frame is white in both Win7 and Win10. Did you deactivate themes in Win7? Your screenshot looks like this. This would switch to the old Win95 style, and give you back control over the color of many controls. In Lazarus, you can turn theme support off by unchecking "Use manifest file to enable themes" in the Project Options. This works also in Win10 - see attached screenshot:

Yes, I disabled themes in win 7 (and forgot about it). Thank you so much. It worked after unchecking the "Use manifest file to enable themes".

It would be even better if the options can be changed in runtime so that users can decide whether to enable themes.
Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161017/1703217a/attachment.html>

Reply by email