Blog Archives

5-Minute-Snack: Determine all your display dimensions with resolution in Delphi

Back in the day, you did not need to know much about the display that your application has been started on except its dimensions. Forms needed to be resized so they would fit the display nicely. Hardly anybody had multiple displays and resolutions of 4000 pixels were unthinkable. Today, the requirement for applications have changed and multi-display environments with 4K displays have become very common.

Read more ›

Tags: , , , , , , ,

5-Minute-Snack: Determine the vertical refresh rate in Hz of your display

Delphi has taken great strides in the RTL that make using direct Windows API calls more and more redundant. A lot of things can be determined using classes that can either be found in the RTL or VCL. However, the vertical refresh rate seems to have been overlooked as I cannot find it in any of the new classes of the RTL.

Read more ›

Tags: , , , , , , , ,

5-Minute-Snack: Hiding or changing the mouse cursor system-wide

At first look, this might seem like a very easy task. Especially, when you simply want to hide the mouse cursor, you will find the method 

function ShowCursor; external user32 name ‘ShowCursor’;

in the Windows API.

Simply state…

ShowCursor( False );

..and the mouse cursor disappears.

Read more ›

Tags: ,

Partnerships




Top