About.com Delphi Programming

Syndicate content About.com
Get the latest headlines from the About.com Delphi GuideSite.
Updated: 21 hours 51 min ago

Free PDF Library for Delphi Developers - Quick PDF Library LITE

Sun, 02/05/2012 - 18:00
in Delphi and PDF :: Are you developing a Delphi application with a task to do PDF document manipulations? Portable Document Format, PDF, ...

Read Full Post

Categories: News, Blogs, and Tips

Switch Languages / Keyboard Layouts in Your Delphi Application

Thu, 02/02/2012 - 19:00
in Delphi TIPS :: If you need to allow the user of your Delphi application to use different languages / keyboard layouts to input data, you would need to mimic ...

Read Full Post

Categories: News, Blogs, and Tips

Store RTF As a Resource - Load Resource RTF Into a TRichEdit

Mon, 01/30/2012 - 19:00
in Resources :: If your application needs external pre-made files like sounds and other raw data, beside distributing separate files for your application's use, you can add the raw ...

Read Full Post

Categories: News, Blogs, and Tips

Ensure NO #13#10 Ending When Using TStringList.SaveToFile

Mon, 01/23/2012 - 23:45
in TStringList :: The SaveToFile method of the TStringList class adds an empty line to the file. Here's how to remove that extra line (actually CRLF - #13#10) in your Delphi ...

Read Full Post

Categories: News, Blogs, and Tips

Deactivating the TShellTreeView Delphi Control - Faking the Active Property

Sun, 01/22/2012 - 18:00
in Shell Controls :: Delphi's TShellTreeView component displays a hierarchical tree view of the system's shell folders and files.
I have an application using TShellTreeView with otFolders and otNonFolders set for ObjectTypes. ...

Read Full Post

Categories: News, Blogs, and Tips

Real World: Upgrade From Turbo Delphi .Net To ?

Mon, 01/16/2012 - 22:53
in Real World Issues :: I've received an interesting email recently from a long time Pascal/Delphi user Jacques Brits.

Jacques has an interesting problem to solve, I guess many could have, and was asking to help him pick the correct direction. Here's a section of the email:

I suspect you might be the man to point me in the right direction.

I am the architect-developer of engineering software called GWIS, a hydraulic pipe network simulator.

Development started back in the days of Turbo Pascal and later Borland Pascal with Objects. When XP was released the DOS software could only display graphics in 640x480 VGA mode. Like everyone else, I was forced to port the software to the Windows platform.

Being a fan of Anders Hejlsberg and hearing all the hype about .NET, I chose to use Delphi 8 for .NET for the port. The port was completed with Turbo Delphi for .NET as a Windows Forms application. No VCL.NET, all Winforms.

Of course this turned out to be a dumb move, as I found out with CodeGear RAD studio 2009's Delphi for .NET.

Although it could compile my code, I could no longer visually edit my Winforms in the design Tab. To edit forms, I had to use Turbo Delphi on a WinXP machine and then copy the .resx files. I was forced to move on to RAD studio 2009, as Turbo Delphi could not install on Windows 7.

I recently got Delphi XE2, only to find that the DelphiDotNet personality is no longer supported !?

My questions:

  1. Is there an easy way out, apart from changing all the forms to VCL or Firemonkey ?
  2. If not, sould I opt for VCL or Firemonkey ?
  3. Do you know of a way to install Turbo Delphi on Windows 7 ?
Seems like a complicated situation, as always is the case in real world problems a developer has to solve.

My answer was "If you want to stick to Net I guess your only move would be to try Delphi Prism. Here's what should help in order to install Turbo on Windows 7. As for VCL or Firemonkey - hard one to answer, that is, pick the right direction."

What say you? Are you in the same situation, or you were, or you might be? What would you suggest?

Categories: News, Blogs, and Tips

Ignoring the "Variable 'btn' might not have been initialized" Warning? Do NOT!

Thu, 01/12/2012 - 22:00
in Pointers & Delphi :: Take a look at your Delphi application, the one you are developing for many days (weeks, years) ... when you hit Compile - how many ...

Read Full Post

Categories: News, Blogs, and Tips

How To Auto Size Run-Time Added TListView Columns

Tue, 01/10/2012 - 00:12
in TListView :: Here's an interesting problem a user of the Delphi Programming Forum has regarding the use of the TListView control:

"I want to create a list view at run-time. When creating the columns, I cannot successfully auto-size one column by assigning the AutoSize value (to true) ... The Help states to assign TListColumn.Width := -2 and that should somehow automatically resize the column, but there is a drawback, the resizing process is too obvious, it causes the list view to blink (especially when there is a significant amount of data record inside)...."

...

Read Full Post

Categories: News, Blogs, and Tips

How Do You Test If a Delphi String Starts With a (Sub)String? What RTL Function is Faster?

Sun, 01/08/2012 - 20:00

in Delphi Strings :: Whatever type of applications you are creating using Delphi, you must be writing some code to handle strings. Delphi provides a healthy assortment of string operators, functions and procedures in RTL...

Read Full Post

Categories: News, Blogs, and Tips

Delphi Programming Almanacs: 1998. - 2011. Something for Every Delphi Developer: Beginner or a Guru!

Mon, 01/02/2012 - 18:00

in Delphi Almanacs :: According to Wikipedia, an almanac is an annual publication containing tabular information in a particular field or fields often arranged according to the calendar.


A Delphi Programming Almanac would then be an annual reference e-book (?) composed of articles, tutorials, tips and tricks relating to programming in Delphi.

A wannabe Delphi programmer, a Delphi beginner or a Delphi guru / expert? More than 13 years of Delphi programming content availabe for you (for free)!

1998. - 2011. Delphi Programming by Zarko Gajic

...

Read Full Post

Categories: News, Blogs, and Tips

No More Memory Leaks In OTL Thread Pool :)

Sun, 01/01/2012 - 21:43
in Delphi Threading :: What a nice New Year present! Just a few days after I wrote my Threaded Delphi Tasks In A Thread Pool - OTL (OmniThreadLibrary) ...

Read Full Post

Categories: News, Blogs, and Tips

Programmatically Check If Your 32-bit Delphi Application Is Running On 32-bit Or 64-bit Windows

Mon, 12/26/2011 - 21:54
in x86 vs x64 :: While I do have Delphi XE 2 (supporting native x64 development) I am still compiling some of my applications as 32-bit applications (waiting for some ...

Read Full Post

Categories: News, Blogs, and Tips

Drag Multiple Files From Delphi's TShellListView

Mon, 12/19/2011 - 19:00
in Shell Controls :: The TShellListView control (a part of the Shell Controls package) ...

Read Full Post

Categories: News, Blogs, and Tips

Snap Mouse To The Default Button in a Dialog Box in Delphi Applications

Sun, 12/18/2011 - 19:00
in Mouse Programming :: Unfortunately for your Delphi application users, the "move pointer to the default button in dialog boxes" feature is not handled by your Delphi application. The mouse ...

Read Full Post

Categories: News, Blogs, and Tips

CancelInvocation And Forget Added To AsyncCalls :)

Thu, 12/15/2011 - 19:36
in Delphi Threading :: Just a few days after I wrote the AsyncCalls Unit By Andreas Hausladen - Let's Use (and Extend) It! article Andreas did release a new ...

Read Full Post

Categories: News, Blogs, and Tips

Delphi Thread Pools - AsyncCalls Unit By Andreas Hausladen - Let's Use (and Extend) It!

Mon, 12/12/2011 - 23:14
in Threading in Delphi :: This is my next test project to see what threading library for Delphi would suite me best for my "file scanning" task I would like ...

Read Full Post

Categories: News, Blogs, and Tips

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

Sun, 12/11/2011 - 19:00
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 ...

Read Full Post

Categories: News, Blogs, and Tips

Understanding Unicode Support in Delphi

Thu, 12/08/2011 - 18:00

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.

...

Read Full Post

Categories: News, Blogs, and Tips

Running Delphi Tasks In Threads - Thread Pool Implementation In OTL - An Example Project

Mon, 12/05/2011 - 21:51
in Threading in Delphi :: The problem I had to solve is how to make file processing as fast as possible. Having a bunch of files (from 500 to 2000+) ...

Read Full Post

Categories: News, Blogs, and Tips

Tabbed Interface (MTI) For Your MDI Delphi Applications

Sun, 12/04/2011 - 18:00

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.

...

Read Full Post

Categories: News, Blogs, and Tips