Question: I have a Delphi GUI application which runs just fine, until a display resolution change automatically causes the GUI window of the program to be repainted. We can catch this display event through the WM_DISPLAYCHANGE message. On the repaint ...

Question: I have created a small program the read a text file. Once the text file is opened in a RichEdit, I want to change the background color of lines that contain a certain string, or to hide all lines ...

Question: In a 32-bit VCL Application in Windows 10 in Delphi 11 Alexandria, I have a TreeView (TTreeView descendant), where MultiSelect = False and PopupMenu = PopupMenu1, so when I right-click a node in the TreeView, then PopupMenu1 is invoked. ...

Question: In the OnCreate event, I have code which adds menu items to a std::vector (for the purposes of this question, it could be buttons, or any other components we create dynamically with the new operator): Then in the OnDestroy ...

Question: I have a project which consists of numerous different frames. Some of those frames are inherited from each other. Here’s the basic setup: TBaseFrame TFrame1 TFrame1A TFrame1B TFrame2 TFrame2A …and so on. Everything was working fine and dandy. I’ve ...

Question: In a 32-bit VCL Application in Windows 10 in Delphi 11 Alexandria, I try to use a TNumberBox control: At design time, I try to preset it with a value of 21 in the ObjectInspector. But as soon as ...

Question: TApplication triggers the event OnModalBegin when a modal TForm is opened. Is there a way to get notified when a non modal TForm is shown/opened the same wayt TApplication.OnModalBegin does ? Answer: You can capture some messages on TApplicationEvents ...