Not allowing focus to form/control
Posted on 1997-11-14
[Delphi 3 / WinNT 4]
I'm creating a sort of "monitor window" that displays various messages based a different set of 12 byte masks.
I split the "monitor" up into 4 TRichEdit controls so I could display the various status's with color and font control.. bold red for some severe problems.. normal black for normal things.
The problem is that when the TRichEdit see's any modification to it's font, it grabs the focus. I don't want that to happen. I want it to politely sit in the background and update it's status.
Setting to ReadOnly or (Enabled := False) don't work.
Are there any Win32 messages I can use and programmatically disallow focus?