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



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

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

Get lotsa FREE downloads and other stuff from our LearnDelphi Community Pages at www.patreon.com/LearnDelphi

Visit our community here…. www.patreon.com/LearnDelphi for:
— 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.

For more Delphi video tutorials also join us at https://www.patreon.com/LearnDelphi

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

https://www.patreon.com/LearnDelphi (Our LearnDelphi Community pages)
https://www.lazarus-ide.org
https://www.planet-source-code.com
https://www.delphi.about.com
https://www.embarcadero.com
https://www.edn.embarcadero.com
http://techteachers.co.za
http://www.studyopportunities.co.za
https://www.facebook.com/DelphiSchools
http://www.lazarus-ide.org/
http://www.delphibasics.co.uk http://stackoverflow.com/

Comments are closed.