DelphiTips

Skip to content
  • Home
MENU
  • Home

How to detect system idle time

admin    November 11, 2007 November 11, 2007    No Comments on How to detect system idle time

If you want to detect user inactivity even if your application is in background (has no focus), it’s really simple. You can achieve this using GetLastInputInfo function.

System    idle, System, time

Directory structure with associated icons and file info in ListView

admin    October 16, 2007 October 16, 2007    No Comments on Directory structure with associated icons and file info in ListView

Using ShellAPI unit and few lines of code, we can load directory structure into ListView and show associated icons and information for each file.

Files, Forms, System    directory, file, icon, ListView, structure

Implementation of Delay procedure

admin    September 30, 2007 September 30, 2007    No Comments on Implementation of Delay procedure

Do you remember Delay procedure from Turbo (Borland) Pascal? It was used to pause the program “flow” for specific time interval. In Windows, there is a different style of programming,… Read more »

System    delay

Online / offline status detection

admin    September 22, 2007 September 22, 2007    No Comments on Online / offline status detection

There are few methods to check if computer is online (=connected) or offline (=disconnected). This one is really simple.

Internet, System    detection, offline, online, status

How to detect computer IP addresses

admin    September 8, 2007 September 8, 2007    No Comments on How to detect computer IP addresses

Using Winsock unit, we can determine computer IP address. If you have more network adapters, all IP addresses will be detected.

Internet, LAN    address, IP

Taskbar position

admin    August 26, 2007 August 26, 2007    No Comments on Taskbar position

For some applications, it’s important to know, where the taskbar is located. Of course, most users use standard “bottom of the screen” position, but of course, you can place it… Read more »

Forms, System    position, taskbar

Just one instance of application

admin    August 22, 2007 August 22, 2007    No Comments on Just one instance of application

If want to allow users to run just one instance of application, one of possible methods is to use “mutext” (mutual exclusion).

Forms, System    application, instance

Retrieve time since the system was started

admin    August 18, 2007 August 18, 2007    No Comments on Retrieve time since the system was started

This tip is very simple. Just use standard function GetTickCount and the rest is just elementary mathematics.

System    start, System, time

Determine CPU frequency

admin    August 18, 2007 August 18, 2007    No Comments on Determine CPU frequency

Here is just small piece of assembler code to determine CPU frequency in MHz.

System    CPU, frequency

Hide /show taskbar clock

admin    August 18, 2007 August 18, 2007    No Comments on Hide /show taskbar clock

Simple function to show and hide taskbar clock.

System    clock, hide, show, taskbar

Posts pagination

« Previous 1 … 4 5 6 7 8 Next »

Categories

  • Android (5)
  • Files (10)
  • Firemonkey (5)
  • Forms (17)
  • Graphic (6)
  • Internet (3)
  • LAN (1)
  • Links (1)
  • Linux (1)
  • Math (1)
  • Menus (3)
  • RAD Studio (9)
  • Registry (3)
  • System (37)
  • Tips (19)
  • Uncategorized (1)
  • VCL components (9)
  • Windows (12)

Recent Posts

  • Delphi Community Edition
  • RAD Studio 10.2 “Tokyo” available now
  • Delphi 10.1 Berlin Starter Edition for free
  • RAD Studio, C++Builder and Delphi 10.1 “Berlin” released
  • RAD Studio, Delphi and C++ Builder 10 Seattle Update 1