Visit site Zarko Gajic

October 2018

1
vote
Vote UpVote

Custom Hints for Each Tab in Delphi’s TTabSet or TTabControl (Plus: Hints in TStatusBar)

Zarko Gajic – Tab set controls are commonly used to display tabbed pages within a dialog box. The TTabControl control can be used to add a control with multiple tab settings to a form. The TTabSet control presents horizontal tabs users can click to initiate actions. Both TTabSet and TTabControl are a single ...
Details Favorite? Off-Topic? zarkogajic @ 2018-10-17 16:06

September 2018

0
votes
Vote UpVote

Quick Algorithm: Get Ideal Size (Square like) For a Board Game Having an Arbitrary (but Even) Number of Fields

Zarko Gajic – Say you are developing a game like Chess, Go, Checkers, Tic-Tac-Toe or Memory. In each of those games the game board is a rectangle looking playfield of different size (rows x columns). Tic-Tac-Toe is 3×3, Checkers is 8×8, while Go can be 19×19 or 13×13 and similar. In a game ...
Details Favorite? Off-Topic? zarkogajic @ 2018-09-19 14:06
0
votes
Vote UpVote

Quick Tip: Dynamically Add Rows, Columns and Controls to Delphi’s TGridPanel

Zarko Gajic – Delphi’s TGridPanel control is an ideal pick when you want to create grid-flow like user interface layout for your controls. To place controls on a grid panel you specify the number of rows and columns (RowCollection and ColumnCollection properties) and simply drop a control on it. Unlike ...
Details Favorite? Off-Topic? zarkogajic @ 2018-09-05 16:06

August 2018

0
votes
Vote UpVote

How to Randomize / Shuffle (Generic) Collections and Lists – Implementing UnSort in Delphi

Zarko Gajic – The second law of thermodynamics, in short version and when read by a programmer, states that “any collection of objects tends not to be sorted” We developers, we have a tendency of organizing objects into lists, collections, queues, stacks … Since you’ll be using the for ...
Details Favorite? Off-Topic? zarkogajic @ 2018-08-09 11:06

July 2018

0
votes
Vote UpVote

Float And Dock Controls In Delphi – No Dock Sites, No Dragging – Implementing Generic Floating Container

Zarko Gajic – In one of my applications, a tab on the page control hosts a TWebBrowser displaying PDF (and other supported) documents. Having the “PDF View” tab active, other tabs of the page control are hidden from the user – as this is how the page control functions. One users asked: ...
Details Favorite? Off-Topic? zarkogajic @ 2018-07-02 13:06

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
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)