Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NumbersOnly TEdit Delphi Hint not working

I'm using Delphi Seattle with the theme of Windows 10, creating programs for Windows Desktop.
In a TEdit if the active NumbersOnly property, when trying to type words, you see a standard Windows hint.
If I leave the program without the theme, the hint appears correctly, with the message explaining that you can only enter numbers. But if the active theme the message is unreadable.

Anyone have any idea where I can change this, because I was looking inside the Vcl.StdCtrls.pas and could not find the time that is generated this message to the user.

Correct hint:

enter image description here

Wrong hint: enter image description here

like image 516
Rafael Rossi Avatar asked Dec 10 '22 16:12

Rafael Rossi


2 Answers

This issue was fixed in RAD Studio 10.1 Berlin. But if you can't upgrade your RAD Studio Version try the VCL Styles Utils project which includes a fix for this. Only you need add the Vcl.Styles.Utils.ScreenTips unit to your project.

enter image description here

like image 161
RRUZ Avatar answered Dec 24 '22 00:12

RRUZ


Update to Delphi 10.1 (Berlin) - it seems to be fixed there as I cannot reproduce this while I can with 10.0 (Seattle).

The bugfix list for Berlin shows several issues being fixed that are related to VCL Styles.

like image 36
Stefan Glienke Avatar answered Dec 24 '22 00:12

Stefan Glienke