Category: Delphi
-
Delphi – uses controls unit in all versions of Delphi, VCL, FMX
This shows how to USE the CONTROLS unit in a way that will work for all versions of Delphi (old and new) as well as VCL and FireMonkey., You can use variations of this for other units
-
Delphi FMX – click through form. HitTest not available
Create a Delphi FireMonkey (FMX) form that the user can click through
-
Examples of Devart UniDac connecting to Oracle database
Examples of Devart Unidac connecting to an Oracle database using Oracle Client and direct connection (no Oracle Client)
-
Separator lines for project files in Delphi IDE
Add separator lines to your Delphi IDE project files list.
-
UPDATE – DelphiFeeds is back
Jan-2020 UPDATE DelphiFeeds.com is alive again. It took 4 years, but at least it is back now 4 months later and still nothing. Step away from the patient. Im calling it. Time of death April 2018 DelphiFeeds its still running, but no new feeds have been added in over 20 months. DelphiFeeds is running on…
-
Convert Delphi VCL window handle (HWND) To String
Simple example of converting a window handle (HWND data type) to a string in a Delphi VCL program cardinal(vMyWindowHandle).ToString
-
Is DelphiFeeds dead ?
What is going on at DelphiFeeds ? It hasnt added any new web sites or blogs for at least 16 months and they dont reply to email. Maybe dead is too strong a word … but it is running on cruise control and has not been updated with new Delphi news, blog and tips sites.…
-
Disable Delphi TTimer during the OnTimer event
When writing a Delphi TTimer event, I often disable the timer and re-enable it at the end of the event. If you dont do this, the OnTimer event could fire again before you have finished processing it.
-
Increase / decrease (Zoom) the Delphi IDE font
Download my free software to add hotkeys to the Delphi IDE to increase and decrease the font size in the code editor.
-
FireMonkey Panel tricks – Panel Color and Transparent Panels
Change the color of a Delphi FireMonkey panel or make a FireMonkey panel transparent.
-
Delphi Performance Tuning – Creating 500 Panels on a Form
I needed to create 500 panels on a form for a game that I was assisting another person with … and Delphi was choking. It was taking 20 seconds to do this. Not cool. We had to find a way to speed it up. This is what we did …
-
Delphi 2D controls in 3D (FireMonkey) – presentation 1st March 2017, Brisbane Australia
I am doing a remote presentation this week on “Displaying and Animating 2D FireMonkey controls in 3D”. This will be at the Australia Delphi User Group’s meeting in Brisbane
-
Fix object is not visible in Delphi’s Live Bindings Designer
I recently hit a problem where an object on a form was not visible in Delphi’s Live Bindings Designer. Ill show you how I fixed that
-
Popup menu for a Delphi Firemonkey form
Unlike VCL forms, Delphi FireMonkey forms do not have a PopupMenu property. So how can you show a popup menu when the user clicks the Right Mouse Button ? You have to code it yourself and its pretty easy to do. The tricky bit is converting the X/Y position from the forms local co-ordinate system to global co-ordinates. Ill show…
-
Immediate TTimer to emulate PostCreate / PostOnCreate event in Delphi
Learn how to create the equivalent of an PostCreate / PostOnCreate event that executes just after the form’s OnCreate event has fired. To do this, we will use an “Immediate Timer”
-
Z Order of Controls in Delphi FireMonkey
Get and set the Z Order of controls at runtime in Delphi FireMonkey.
-
Multi Line Popup Hints for Delphi VCL and FMX
Learn how to setup multi line popup hints in Delphi for any type of control for both VCL and FireMonkey. This uses native Delphi code. You don’t need to hack the forms’s DFM text file
-
Using a reserved word as an identifier (variable name, class name etc) in Delphi
AKA Silly Delphi Party Tricks #1 Is it possible to use a reserved word as an identifier ? For example – I want to name my variable or class “BEGIN” because, ummm, well I dont know just because. Yes you can. Simply prefix the the name with an ampersand “&” escape character like this var &begin : integer; // begin…
-
Conditional compilatation to detect VCL or FireMonkey in a Delphi Form
This shows how to detect if your application is using FireMonkey (FMX) or VCL when using conditional compilation within a Delphi form unit. UPDATE – a better solution has been provided by a Rudy Velthuis. I recommend to use that instead of my original post. Ive provided examples based on his feedback. Thanks Rudy
-
List of Delphi controls on a form – Tree hierarchy and flat list (FireMonkey)
Get a list of all controls in your Delphi FireMonkey (FMX) form . Examples included a flat list and a hierarchical “tree” list
-
List of Delphi controls on a form – Tree hierarchy and flat list (VCL)
Get a list of all controls in your Delphi VCL form Examples included a flat list and a hierarchical “tree” list
-
Change Delphi control values without change events firing (VCL and FMX)
Change a Delphi field value without the change events firing (OnChange)
-
Converting Delphi Angles between Degrees, Radians and X/Y
If you need to convert angles in Delphi between degrees (0 – 360), radians and X/Y coordinates you have come to the right place. Ill show you how to do it in just one line of code, two if you count the USES entry