Change Delphi control values without change events firing (VCL and FMX)

Change a Delphi field value without the change events firing (OnChange)

Sometimes you want to change the value of a Delphi control without its change event firing.

For example, when your application starts up and you are initializing control values.  The rest of the application isn’t setup yet so you might not want the control change event firing and executing other code.

Ill show you how to do it with just one line of code using my custom unit for VCL and Firemonkey

changeeventsdisable1

Continue reading “Change Delphi control values without change events firing (VCL and FMX)”

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

angle_conversions

Continue reading “Converting Delphi Angles between Degrees, Radians and X/Y”