Visit site Zarko Gajic

March 2018

1
vote
Vote UpVote

Screen Shuffling with Delphi (first step to a Sliding Puzzle Game)

Zarko Gajic – I’m sure you’ve seen it already. When the program starts it takes a picture of the current desktop, the picture is then cut into a number of rectangular pieces (all of the same size). A piece at some random position is “removed”. The main code randomly swaps that piece with ...
Details Favorite? Off-Topic? zarkogajic @ 2018-03-07 14:06

January 2018

2
votes
Vote UpVote

Generic Solution to Coloring the Focused Entry Control in Delphi Applications

Zarko Gajic – Looking for the best approach to change the background color (and other properties) of the focused data entry control in a Delphi (VCL) application? By (Windows) design, the control on a data entry form which has the input focus is not drawn (/highlighted) differently from other controls (i.e. ...
Details Favorite? Off-Topic? zarkogajic @ 2018-01-29 14:07

August 2017

1
vote
Vote UpVote

gZoom – Delphi Implementation of the Missing Mode in Windows Magnifier

Zarko Gajic – Ah, nostalgia. Here’s a small Delphi program I wrote some 20+ years ago. As far as I can remember this was one of my first (maybe even the first one really) Delphi applications which would not fall into the “hello world” category. Back then I was quite impressed how easy was to call Windows API ...
Details Favorite? Off-Topic? zarkogajic @ 2017-08-29 17:05

February 2017

0
votes
Vote UpVote

Making the Glyph Property High DPI Aware for TBitBtn and TSpeedButton

Zarko Gajic – Finally, last step in making my (/your) Delphi application not only high-dpi aware but also high dpi button-glyph-display-size-as-expected-ware. In my last post I’ve shared how to programmatically upsize images in TImageList so that menus, popups, toolbars and other controls using image lists ...
Details Favorite? Off-Topic? zarkogajic @ 2017-02-24 16:06
1
vote
Vote UpVote

Resizing TImageList Bitmaps to Fit High-DPI Scaling Size (for Menus, Toolbars, Trees, etc.)

Zarko Gajic – So, you’ve made your Delphi application high-DPI aware and after a few manual fixes the UI looks more or less usable on 4K displays having logical DPI values set to more than 100% (96 DPI). However, you open up the application’s main menu (or any popup menu) set to display images from an image ...
Details Favorite? Off-Topic? zarkogajic @ 2017-02-17 17:06
2
votes
Vote UpVote

Delphi High-DPI Road: Ensuring Your UI Looks Correctly for TImage, TColorBox, Owner Drawn TComboBox , TStatusBar and some more

Zarko Gajic – So you want to go down the high-DPI road? Feeling alone? I did The classical answer “it works on my machine” will not be sufficient here. Your non high-dpi aware Delphi application might look nice on your development machine, but it certainly looks super small or ugly stretched on your client’s ...
Details Favorite? Off-Topic? zarkogajic @ 2017-02-13 18:06
2
votes
Vote UpVote

Writing and Enabling Delphi Application to Support High DPI Displays and 4K Screen Resolutions

Zarko Gajic – Woohoo! After a few weeks of struggle I’ve finally high-dpi enabled my used-across-the-globe Delphi application. It was not a too hard job – it just took a lot of time and experimenting (read: fixing) how the UI of the application appears on various 4K displays having various settings for “Make ...
Details Favorite? Off-Topic? zarkogajic @ 2017-02-09 18:05

September 2016

1
vote
Vote UpVote

Fun: Delphi Does Bohemian Rhapsody

Zarko Gajic – Who said programming is not fun? How about your favorite programming language doing (a part of) Queen’s Bohemian Rhapsody? Here goes: program BohemianRhapsody; {$APPTYPE CONSOLE} uses System.SysUtils, System.Generics.Collections; type ELandSlideException = Exception; TSex = (Male, ...
Details Favorite? Off-Topic? zarkogajic @ 2016-09-02 12:14

August 2016

0
votes
Vote UpVote

Quick Tip: Is a Drive Hidden From Windows Explorer (Using NoDrives Registry Entry)

Zarko Gajic – The “NoDrives” Registry entry allows to hide a drive (/drives) you do not want to get displayed by Windows Explorer and/or from the standard Open Dialog box. Here’s how to programmatically check if a drive is hidden using Delphi. Say you have a mapped network drive that points to your encrypted ...
Details Favorite? Off-Topic? zarkogajic @ 2016-08-18 12:11

April 2016

2
votes
Vote UpVote

Quick Tip: Implement Zoom In Virtual TreeView Using CTRL + / CTRL –

Zarko Gajic – Most Windows applications I use in my daily work (email clients, browsers, text editors) have a handy feature allowing to make the text larger by increasing (or smaller by decreasing) the font size. Increasing the text size in a web browser is something I got accustomed to doing frequently – to ...
Details Favorite? Off-Topic? zarkogajic @ 2016-04-29 14:46

September 2015

2
votes
Vote UpVote

Time Out a Message Dialog – Auto Close a Dialog Window After Some Time / Seconds

Zarko Gajic – Users do not read dialogs. They. Do. Not. Neither do we developers (admit it). Dialogs are scary things that pop to the user asking to make some kind of selection / decision. Users mostly simply click the little [x] button and hope no further questions would be raised. Regression: do you know what ...
Details Favorite? Off-Topic? zarkogajic @ 2015-09-30 16:47

April 2015

3
votes
Vote UpVote

Speed Up Your Delphi Database Apps Using Remote SQL

Zarko Gajic – I recently came across a new product in the Delphi world called RemoteSQL. I use and see a lot of Delphi components in my day to day work, but this one caught my eye because it deals with one of my (/everyone’s) pet peeves – speed. RemoteSQL is an additional client-server application tier that ...
Details Favorite? Off-Topic? zarkogajic @ 2015-04-17 16:34

March 2015

2
votes
Vote UpVote

64-bit Delphi Applications Using TWebBroswer to Display PDF Documents – Go or No-Go?

Zarko Gajic – I have an application using TWebBrowser component to allow viewing of Adobe PDF documents within the application. This approach is really pretty simple: when a user of the application has Adobe Reader (/Acrobat) installed, by default any PDF documents will get open inside Internet Explorer (and ...
Details Favorite? Off-Topic? zarkogajic @ 2015-03-12 11:51

November 2014

2
votes
Vote UpVote

Displaying Long Non-Breakable Text (File Path) In MessageDlg – Truncation/Ellipsis Issues

Zarko Gajic – Introduced way back in Delphi 2009 the TTaskDialog (defined in Dialogs.pas) implements task dialogs. Task dialogs first appeared in Windows Vista and are used in later Windows versions. In essence, a task dialog is similar to, while much more flexible and parameter-rich than the standard message ...
Details Favorite? Off-Topic? zarkogajic @ 2014-11-07 17:04

September 2014

1
vote
Vote UpVote

Fun: Refactoring a Complex Delphi Boolean Function

Zarko Gajic – Refactoring your own code is, what I guess, something that you do frequently – at least I am. Maybe a better description of the process I went through would be rewriting, but let’s stick with refactoring. Either the routines get too complex, or there’s an extra parameter needed or there’s some new ...
Details Favorite? Off-Topic? zarkogajic @ 2014-09-11 12:58
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)