in TListView Tips and Tricks ::
When the Checkboxes property is True, ListView includes a check box next to the items in the list. To get the "checked" state for an item in the list view, read the Checked boolean property.
You will notice that checking or unchecking the item in a list view will not change the selected item - the item that gets checked will not get selected.
in Delphi Tips :: If you need to add a custom property to a form and have it initialized *before* the OnCreate event, you will need to override the form's constructor.
in Delphi VCL ::
The TTreeView Delphi control wraps the Windows tree view control. TTreeView is comonly used when a hierarhical structure needs to be displayed to the user.
To display different hints for every node in a tree view, you need to change the Hint property of the TTreeView control depending on the item the mouse is over.
in Delphi TIPS :: By Windows design, when you hover your mouse over an item, a hint (tooltip) window appears containing the title of the item under the mouse cursor, if the entire title is not currently visible.
Sometimes, you might want to disable such tree view behavior in order to show, for example, custom hints for every tree node.
in Coding Delphi Applications ::
If you are preparing to move / migrate your "old" Delphi applications to any Delphi version later than Delphi 2009, you must have heard that a default Delphi string type is now (where "now" means in Delphi versions >= 2009) Unicode.
What does this mean? Will you have trouble migrating your "ansi" applications? How to create new Unicode Delphi application? What has changed with Char, String and PChar types?
in Delphi Ideas :: One method of generating a long password, without storing it anywhere is to select a file (either binary or text), do a little bit of processing on it then force the resulting values into the ASCII range 32-127 and output them as characters. Here's how to do it in Delphi.
in Delphi TIPS :: One way to locating errors while designing your code is to use the integrated debuger. If you set a breakpoint on a line in your source code, the line that contains the breakpoint appears in the Code editor highlighted.
What if you need to "dive" into the source code Delphi controls are made of? What if you need to step through the CreateParams method of the TCustomForm class?
in MDI Tips and Tricks ::
MDI, as a preferred user interface for applications that allow multiple documents to be contained within a single window, is being abandoned by Microsoft during the last few years.
Microsoft started to promote a different user interface for such applications - TDI: Tabbed User Interface.
in Delphi TIPS :: Delphi's ParamStr and ParamCount functions are designed to help operate the parameters (command-line arguments) passed to the application. Due to the way ParamStr function is implemented in Delphi, parameters passed using double quotes ("") will not be parsed correctly (quotes will be removed). The "CmdLineHelper" unit provides 3 custom Delphi functions to overcome the problem of the RTL's ParamStr implementation.
in Delphi VCL :: When an edit box or a label is placed on a panel, in a Delphi application, if the Enabled property for the panel is set to False, the label and the edit box will *not* appear grayed - as you would expect! Here's a quick fix.