Visit site Zarko Gajic

December 2018

0
votes
Vote UpVote

Coding a Game of Memory in Delphi – OOP Model

Zarko Gajic – Memory, Match Up, Concentration … there are many names for a simple card game I’m certain you’ve been playing with your friends at some point in your childhood. I’m also certain you are still playing it from time to time (at least I do with my kids). Just a few months ago, I’ve tried my “luck” ...
Details Favorite? Off-Topic? zarkogajic @ 2018-12-04 15:06

November 2018

1
vote
Vote UpVote

Delphi Interceptor Classes -> TButton = class(TButton)

Zarko Gajic – Have you ever needed for a specific Delphi control, like a TButton, to have just one more property or a method that is a “must have” for your current application? Most Delphi developers, when they need a TMySuperButton, would either look for a third-party VCL solution or would try ...
Details Favorite? Off-Topic? zarkogajic @ 2018-11-20 17:06

October 2018

1
vote
Vote UpVote

Implementing Custom Hint For Each Panel on a Status Bar

Zarko Gajic – As the Help states, The TStatusBar Delphi control displays a row of panels, usually aligned at the bottom of a form. Each panel is represented by a TStatusPanel object listed in the Panels property. Much like any other VCL control, the TStatusBar can be adopted and extended to offer greater ...
Details Favorite? Off-Topic? zarkogajic @ 2018-10-23 17:06
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
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)