Learn Delphi Programming | Unit 8.4 | Changing Properties In Delphi Code

preview_player
Показать описание

-- Download some video lessons for FREE
-- Download some Delphi project files used in tutorials for FREE
-- Download some PDF lesson instructions for FREE
-- Participate in chats and discussions
-- Get Early access to new tutorials
-- No need to signup and no obligation
PS: SORT VIDEOS FROM EARLIEST TO LATEST TO START AT THE BEGINNING

----------------------------------------
Delphi Programming Tutorial - Unit 8.4 - Changing Properties In Delphi Code:

In this tutorial we learn how to change properties in run-time, in other words, how to write code to enable our users to change properties while a program is running. We first have a brief look at some of the properties provided by the Object Inspector. These include:

Dimensional properties (To set the size of a component) i.e. Width and Height;

Positional properties (To set the location/position of a component) i.e. Top and Left.

Visual properties (To set the look-and-feel of a component) i.e. Color, Caption, Text, Visible, Enabled.

We then look at basic property assignment statements in Delphi code and we dissect the structure of general property assignments in code. We use an assignment operator (:=) to make property changes in Delphi code. This tutorial demonstrates these concepts with the Width, Left, and Caption properties of a TButton, but these concepts can be applied to most properties of almost any Delphi object that has properties. We also learn about the semi-colon as a statement terminator.

The tutorial explains the types of values that can be assigned to the objects used in the different examples i.e. Integer (whole number), Integer expressions (calculations with whole numbers), String, String expressions (joining strings / concatenating strings), Boolean (true or false values), constants (predefined values). We also learn a handy trick to make it easy to read assignment statements by reading them from right to left.

This tutorial (Delphi Programming Tutorial - Unit 8.4 - Changing Properties In Delphi Code) is best viewed in HD. To change your settings to HD:

1. Click on the gear-icon (Settings) at the bottom of the YouTube Video Player.

2. Select "720p HD" and wait a few moments for the setting to take effect.

Enjoy!

PS: Help us to keep these tutorials FREE! Keep our sponsors happy and press the LIKE button! Also invite your friends to SUBSCRIBE to our channel. Please, tell us in the comments section if you liked the tutorial and ask questions about the lessons related to this tutorial.

You may also want to visit the following resources for more information:

Рекомендации по теме
Комментарии
Автор

I need to thank you for all the videos you posted. 3 Days ago Delphi was a very scary thought for me. I went through the beginner level of Delphi with you and it all makes more sense now. Hopefully we can figure out a way to do his school project soon. They need to create a board game like Battleship. Keep up the good work and THANK YOU....THANK YOU....THANK YOU

marlizeviljoen
Автор

it is good tutorial thank you very much my brother

soumaresaid