FireMonkey Panel tricks – Panel Color and Transparent Panels

Change the color of a Delphi FireMonkey panel or make a FireMonkey panel transparent.

Use this FireMonkey panel trick to change the color of a Delphi FireMonkey panel or make a FireMonkey panel transparent

FireMonkey_Panel_Color

Continue reading “FireMonkey Panel tricks – Panel Color and Transparent Panels”

Delphi Performance Tuning – Creating 500 Panels on a Form

I needed to create 500 panels on a form for a game that I was assisting another person with … and Delphi was choking.  It was taking 20 seconds to do this.   Not cool.  We had to find a way to speed it up.  This is what we did …

Continue reading “Delphi Performance Tuning – Creating 500 Panels on a Form”

Delphi 2D controls in 3D (FireMonkey) – presentation 1st March 2017, Brisbane Australia

I am doing a remote presentation this week on “Displaying and Animating 2D FireMonkey controls in 3D”.  This will be at the Australia Delphi User Group’s meeting in Brisbane

Continue reading “Delphi 2D controls in 3D (FireMonkey) – presentation 1st March 2017, Brisbane Australia”

Popup menu for a Delphi Firemonkey form

Unlike VCL forms, Delphi FireMonkey forms do not have a PopupMenu property.  So how can you show a popup menu when the user clicks the Right Mouse Button ?

You have to code it yourself and its pretty easy to do.  The tricky bit is converting the X/Y  position from the forms local co-ordinate system to global co-ordinates.  Ill show you to do that.

popup_menu_1

Continue reading “Popup menu for a Delphi Firemonkey form”

Immediate TTimer to emulate PostCreate / PostOnCreate event in Delphi

Learn how to create the equivalent of an PostCreate / PostOnCreate event that executes just after the form’s OnCreate event has fired.

To do this, we will use an “Immediate Timer”

Continue reading “Immediate TTimer to emulate PostCreate / PostOnCreate event in Delphi”