Delphi Component Messages

Posted December 15th @ 1:56 pm by m3Rlin

Delphi sends messages for notification of events that are only applicable to Delphi components. They are like Windows messages in use. If you have a component that publishes the Font property the component probably needs to be repainted if any subproperties in the Font are changed. Changing the Font property does not necessarily generate a [...]

How to Get the Smallest Number From an Array

Posted December 15th @ 1:01 pm by m3Rlin

The idea is the same as in tip 6.1 but this functions finds the smallest number.

{ You can easily modify this function to accept other numerical types }
function MinInteger(const aInt: array of Integer): Integer;
var
iI: Integer;
begin
Result := aInt[Low(aInt)];
for iI := Low(aInt) + 1 to High(aInt) do
if [...]

« Previous EntriesNext Entries »