Recent

Author Topic: [SOLVED] TRichMemo and text colour  (Read 4492 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 8103
Re: [SOLVED] TRichMemo and text colour
« Reply #15 on: December 13, 2024, 01:56:57 pm »
I tried to modify AddRichText.
I have an issue with ABackgroundColour = clDefault - I cannot get the actual colour of the RichMemo.
The ARichMemo.Colour returns clDefault.
I tried with Brush, etc, I still do not get the actual background colour of the RichMemo. Any ideas?

I don't think this is really related to the remainder of this thread, other than that

Quote
...that might depend on the widget set.

I suggest starting a separate thread, with a title that specifically asks how to recover the /actual/ colour of something identified as one of the "specials", i.e. clDefault etc.

However my own suspicion is that this will be heavily dependent on the widget set, including obviously the extent to which a control is implemented by an underlying widget rather than being lovingly handcrafted.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018