About.comAbout.com Delphi Programming

Get the latest headlines from the About.com Delphi Programming GuideSite.

Tue, 09 Mar 2010 06:29:01 +0000

Selecting Delphi's TListView Item When the Item's Checkbox is Checked

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.

Read the full article to learn how to Programmatically Select a TListView Item on Item Check / Uncheck

Related:

Selecting Delphi's TListView Item When the Item's Checkbox is Checked originally appeared on About.com Delphi Programming on Tuesday, March 9th, 2010 at 06:29:01.

Permalink | Comment | Email this


Mon, 08 Mar 2010 02:00:40 +0000

Adding Custom Properties to Delphi Forms; Overriding the Create Constructor

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.

Read the full article to learn about Adding Custom Properties to Delphi Forms; Overriding the Create Constructor.

Related:

Adding Custom Properties to Delphi Forms; Overriding the Create Constructor originally appeared on About.com Delphi Programming on Monday, March 8th, 2010 at 02:00:40.

Permalink | Comment | Email this


Fri, 05 Mar 2010 02:00:07 +0000

Display Custom TTreeView Item Hints

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.

Read the full article to learn how to Display Custom TTreeView Item Hints.

Related:

Display Custom TTreeView Item Hints originally appeared on About.com Delphi Programming on Friday, March 5th, 2010 at 02:00:07.

Permalink | Comment | Email this


Thu, 04 Mar 2010 02:00:27 +0000

Disable Automatic Hint Feature for the TTreeView

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.

Read the full article to learn how to Disable Automatic Hint Feature for the TTreeView.

Related:

Disable Automatic Hint Feature for the TTreeView originally appeared on About.com Delphi Programming on Thursday, March 4th, 2010 at 02:00:27.

Permalink | Comment | Email this


Tue, 02 Mar 2010 08:08:51 +0000

Understanding Unicode Support in Delphi

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?

Read the full article to learn about Unicode Support in Delphi

Related:

Understanding Unicode Support in Delphi originally appeared on About.com Delphi Programming on Tuesday, March 2nd, 2010 at 08:08:51.

Permalink | Comment | Email this


Mon, 01 Mar 2010 03:00:18 +0000

An Easy Way to Programmatically Generate Strong Passwords

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.

Read the full article to learn how to Programmatically Generate Strong Passwords with Delphi

Related:

An Easy Way to Programmatically Generate Strong Passwords originally appeared on About.com Delphi Programming on Monday, March 1st, 2010 at 03:00:18.

Permalink | Comment | Email this


Fri, 26 Feb 2010 03:00:56 +0000

How to Debug Delphi VCL Source Code (Set a Breakpoint in the VCL)

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?

Read the full article to learn How to Debug Delphi VCL Source Code (Set a Breakpoint in the VCL).

Related:

How to Debug Delphi VCL Source Code (Set a Breakpoint in the VCL) originally appeared on About.com Delphi Programming on Friday, February 26th, 2010 at 03:00:56.

Permalink | Comment | Email this


Tue, 23 Feb 2010 09:47:47 +0000

Tabbed Interface (MTI) For Your MDI Delphi Applications

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.

How about "simulating" a TDI for your MDI?

Read the full article to learn how to Use Tabs to Navigate Through MDI Child Forms in your MDI Delphi Application

Related:

Tabbed Interface (MTI) For Your MDI Delphi Applications originally appeared on About.com Delphi Programming on Tuesday, February 23rd, 2010 at 09:47:47.

Permalink | Comment | Email this


Mon, 22 Feb 2010 03:00:47 +0000

Parsing Command Line Parameters with Delphi

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.

Read the full article to learn how to Parse Command Line Parameters with Delphi ("double quote parameters fix").

Related:

Parsing Command Line Parameters with Delphi originally appeared on About.com Delphi Programming on Monday, February 22nd, 2010 at 03:00:47.

Permalink | Comment | Email this


Thu, 18 Feb 2010 03:13:56 +0000

Disabling Container Child Controls when the Enabled property changes

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.

Read the full article to learn how to Disabling Container Child Controls when Enabled property changes.

Related:

Disabling Container Child Controls when the Enabled property changes originally appeared on About.com Delphi Programming on Thursday, February 18th, 2010 at 03:13:56.

Permalink | Comment | Email this