ActiveX: MS Testcontainer doesn’t close Delphi ActiveX
MS Testcontainer doesn’t close whith Delphi ActiveX. Same problem in MS C++ Solution: – look in the source AxCtrls.pas – look at the…
DateTime: Get Number of Days in a month
Q: How do i get how meny days there are in January 2002? How do i do that..? Thanks!! A1: NbrDays := EncodeDate(2002,2,1)…
DateTime: TDateTimePicker without seconds
> I am using the TDateTimePicker with Kind = dtkTime. I cannot seem to get > rid of the seconds in the control.…
DateTime: Time Parse
[code lang=”delphi”]// First we need to create a record type TimeParse = record timeDay : Integer; timeHour : Integer; timeMin : Integer; timeSec…
Installing/Removing Fonts
Installing/Removing Fonts: AddFontResource(Path+\FileName.TTF’); // to add font to system SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0); //to notify that fonts are changed. you can use: RemoveFontResource(Path+’Data\FileName.TTF’);…
Write all Font-Styles to the registry
Q: How to write all Font-Styles to the registry? A: True, but why handle the set elements in the first place? The following…
Delay (Boris Nienke)
Boris Nienke Sleep Delay Wait Pause [code lang=”delphi”]procedure Delay(iMilliSec: integer); var tVergl: TTimeStamp; iTime : integer; begin tVergl := DateTimeToTimeStamp(now); iTime := tVergl.Time;…
EasterEggs
> > How to capture ALT+T E A M in a about box? > Hi … Set the form’s KeyPreview property to True…
ExecAndWait (LaunchAppAndWait für Delphi)
—– available WindowStates: SW_SHOWDEFAULT SW_SHOW SW_SHOWMINIMIZED SW_SHOWMAXIMIZED … look at Windows-API ———— [code lang=”delphi”]function ExecAndWait(const Filename, Params: string; WindowState: word): boolean; var SUInfo:…
ExecuteFile (LaunchApp for poors :-) )
With the Delphi-Procedure “ExecuteFile” (details in Online-Help) you can run programs from within your Delphi appplication without handling complicated API-commands (CreateProcess etc..). [tags]Delphi,…