OnChange Tracking Demo is the perfect way to learn how to build a demo that handles an OnChange event. This cross-platform application is built in Delphi using a single code base and single UI for Android, iOS, macOS, Windows, and Linux. With OnChange Tracking Demo, you’ll be able to quickly and easily create a demo that tracks changes in data. This is an essential tool for anyone who wants to learn how to build demos or for developers who need to track changes in their data. OnChange Tracking Demo is the perfect solution for tracking changes in data on any platform.
Download the full cross-platform Hello World source code on Github.
This demo is part of over 100 cross-platform demos with everything from camera demos to emoji demos and painting demos.
Table des matières
What is an OnChange event in software development?
In software development, an OnChange event is an event that occurs when the value of a field changes. This can be due to the user changing the value manually, or programmatically through code. When the OnChange event fires, it allows the software to run any necessary code to update other parts of the software accordingly. For example, if a software application has a field for entering a user’s email address, the OnChange event could be used to check that the email address is valid before the user submits the form. In this way, OnChange events can help to ensure that software operates as intended.
Screenshot
What does the sample code look like?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
unit Unit1; interface uses System.SysUtils, System.Types, System.UITypes, System.Des classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Edit, FMX.Effects, FMX.StdCtrls, FMX.Controls.Presentation; type TForm1 = classe(TForm) ToolBar1: TToolBar; Label1: TLabel; ShadowEffect4: TShadowEffect; MaterialOxfordBlueSB: TStyleBook; Edit1: TEdit; procedure Edit1ChangeTracking(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.fmx} procedure TForm1.Edit1ChangeTracking(Sender: TObject); commencer Label1.Text := Edit1.Text; end; end. |
Ready to learn how to program cross-platform apps like this?
Sign up for the Coding Boot Camp 2022 to learn to program. Topics include: Games, JavaScript, Web, Python, SQL, Databases, iOS, MacOS, Android, Mobile, Linux, Windows, Desktop, Server, and Arduino.