Jump to content

How To Change The Background Colour Of A TUniDBFormattedNumberEdit Control?


Frederick

Recommended Posts

I think that since the older themes support a general look-and-feel but allow colour settings for the background, newer themes should allow the same customisations.

Interestingly, Uni_Windows11 works fine with colour changes at runtime but I prefer the header colour in Uni_Win11_Polar_Light.

Alternatively, offer the following options:-

1.   No theme support (I can control all aspects of the look and feel of the application)

2.  Allow users to inherit from existing themes and make changes so that the look-and-feel matches their application or their client requirements

Link to comment
Share on other sites

  • 3 weeks later...

I upgraded to 1.95.0.1574 and setting the following properties for TUniDBFormattedNumberEdit during runtime results in:-

TUniDBFormattedNumberEdit1.Font.Color:=clRed;  // Works

TUniDBFormattedNumberEdit1.Color:=clYellow;  // Does not work

How can I get the latter to work? I change the background colour from clWhite to clYellow to inform the user that there is a mistake in their data entry and this problem is causing issues with my application.

The theme is uni_win11_polar_light. With uni_flat_black, both properties work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...