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,…
How To Get VersionInformation
> Can I get the Application Version, which I set using IDE’s option menu , in > code? How? Here’s an example:
how to let EXE delete itself while running?
Q: how to let EXE delete itself while running? >I want to delete exe file while is opened. My friend did that in…
Keyb_event (simulating Keypress part 2)
> I’ve already got a handle of another application’s window. Now, how can I > simulate a keyboard input of ‘ALT-R’ to it?…
Pascal to htm converter
> Does anybody know about a Pascal-to-HTML converter which uses the Delphi > editor settings, like colors etc.? > steven 1.) The converter…