* * *

Author Topic: disabled tlabel looks very different in IDE compared to application.  (Read 715 times)

josh

  • Hero Member
  • *****
  • Posts: 617
Hi

Noticed a very odd and ugly visual difference between the IDE and the Application.exe of a Tlabel control when Control is Disabled.

If I set a tlabel enabled=false then the IDE shows it a nice gray color, when application is run, it appears very different the gray color has changed and even has a white border around the label.caption.

I have tried setting various project options (using manifest etc).

Image attached

Lararus and FPC Fixes (win32), windows 10 64

left image app.exe, right image ide
« Last Edit: July 09, 2018, 10:25:25 am by josh »
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

wp

  • Hero Member
  • *****
  • Posts: 4916
Re: disabled tlabel looks very different in IDE compared to application.
« Reply #1 on: July 09, 2018, 10:46:25 am »
"Project" > "Project options" > "Application settings" > check "For Windows: Use manfest resource (and enable themes)"
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus