How do I change properties for GUI-components from another unit?
e.g. hide a button or change a label text from a different unit.
/anders
-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5941 / Virus Database: 4342/9751 - Release Date: 05/11/15
--
On 11/05/2015 22:41, Anders Eriksson wrote:
How do I change properties for GUI-components from another unit?
e.g. hide a button or change a label text from a different unit.
Two example units that inter-communicate might be as follows:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Thank you very much for your answer.
I will try it out tomorrow.
I have struggled with this for weeks.
/anders
Howard Page-Clark skrev den 2015-05-12 00:43:
On 11/05/2015 22:41, Anders Eriksson wrote:
How do I change properties for GUI-components from
another unit?
e.g. hide a button or
Il 11/05/2015 23:41, Anders Eriksson ha scritto:
How do I change properties for GUI-components from another unit?
e.g. hide a button or change a label text from a different unit.
If you have in unit1 a Form1 with a Button1 component, and Form1 is
declared in the Interface section of unit1