Visit site About Delphi Programming
February 2012
0
votes
Switch Languages / Keyboard Layouts in Your Delphi Application
About Delphi Programming
– 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 the "Text Service and Input Languages" Control Panel applet. Using Control Panel you can specify the default language that you use to ...
January 2012
0
votes
Store RTF As a Resource - Load Resource RTF Into a TRichEdit
About Delphi Programming
– 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 data to your application as a resource. Here's how to store and load RTF (rich text document) data as a resource in ...
3
votes
Ensure NO #13#10 Ending When Using TStringList.SaveToFile
About Delphi Programming
– 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 applications you need one line of text to really be one line of text in the saved document. Read the full article to learn ...
0
votes
Deactivating the TShellTreeView Delphi Control - Faking the Active Property
About Delphi Programming
– 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. The actual shell tree is, by design, not visible, and is only presented to ...
0
votes
Real World: Upgrade From Turbo Delphi .Net To ?
About Delphi Programming
– 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 ...
0
votes
Ignoring the "Variable 'btn' might not have been initialized" Warning? Do NOT!
About Delphi Programming
– 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 compiler warnings do you see? Zero? Bravo! A few? A dozen, hundreds? Do you find in the list the "Variable 'btn' might not have been ...
1
vote
How To Auto Size Run-Time Added TListView Columns
About Delphi Programming
– 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 ...
1
vote
How Do You Test If a Delphi String Starts With a (Sub)String? What RTL Function is Faster?
About Delphi Programming
– 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. Let's say that you need to determines whether the beginning of a string ...
1
vote
Delphi Programming Almanacs: 1998. - 2011. Something for Every Delphi Developer: Beginner or a Guru!
About Delphi Programming
– 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 ...
2
votes
No More Memory Leaks In OTL Thread Pool :)
About Delphi Programming
– 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) Example article, Primoz Gabrijelcic (the author of the Omni Thread Library) informed me he was able to locate and fix the memory leak problem I was ...
December 2011
2
votes
Programmatically Check If Your 32-bit Delphi Application Is Running On 32-bit Or 64-bit Windows
About Delphi Programming
– 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 3rd party to move to x64). Having my x86 (32-bit) application running on various Windows versions - I need a way to know if my 32 bit ...
0
votes
Drag Multiple Files From Delphi's TShellListView
About Delphi Programming
– in Shell Controls :: The TShellListView control (a part of the Shell Controls package) can be used to display files from the file system. Paired with TShellTreeView shell, the TShellListView can be used to mimic Windows Explorer user interface. When MultiSelect property is set (to true) for the ...
1
vote
Snap Mouse To The Default Button in a Dialog Box in Delphi Applications
About Delphi Programming
– 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 pointer will not jump for Delphi dialog boxes like InputBox, MessageBox, ShowMessage or any custom made ...
1
vote
CancelInvocation And Forget Added To AsyncCalls :)
About Delphi Programming
– 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 2.99 version of AsyncCalls. The IAsyncCall interface now includes three more methods: The CancelInvocation method stopps the AsyncCall from ...
2
votes
Delphi Thread Pools - AsyncCalls Unit By Andreas Hausladen - Let's Use (and Extend) It!
About Delphi Programming
– 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 to process in multiple threads / in a thread pool. While exploring more ways to have some of my functions executed in a threaded manner I've ...




