I need to create DYNAMICALLY some objects within other objects. The pseudocode I want goes something like this:
// on click of a button
For iLoop := 1 to iNoOfPanelsToDo do
// Create a panel
// give it a cyclic name ('panel001')
// set its size and location on the form by Top := iLoop*20 etc.
// Create a child panel on the above panel
// give it a cyclic name ('innerpanel001')
// set its size and location on the form
// Create a button on the innerpanel
// Attach procedure 'InnerButtonPressed' to the button's OnClick event
I've stumbled through the Delphi Help but I cant seem to find anything like this in terms I've guessed to put in the search, yet I suspect it is something the more experienced Delphi people will know like the back of their hand. I did it before ages ago; all I can remember is the bit about accessing the dynamically-created components by name with FindComponent.
Sample code is best; I learn well from plagiarism; oops, I mean example.
Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!
A lot of questions regard threads in Delphi.
One of the more specific questions is how to show progress of the thread.
Updating a progressbar from inside a thread is a mistake.
A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load?
This is the article to read if you want to learn some things about adding threads for data loading in the background.
First, I'll setup a general applica…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred.
This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download.
This will be demonstrated using Microsoft Expression Encoder 4.