Hello!
Whether prompt, please, it is possible to make so that in a delph operations were fulfilled simultaneously? I have the following code:
TForm4.TreeView1DblClick(Sender: TObject); begin if TreeView1.Items.Item[0].Selected=True then Form2.Show; if TreeView1.Items.Item[1].Selected=True then Form3.Show; if TreeView1.Items.Item[3].Selected=True then begin Form4.Label4.Caption:='1234567'; Form4.Show; end; if TreeView1.Items.Item[4].Selected=True then ListBox1.Items.LoadFromFile('21.txt'); if TreeView1.Items.Item[5].Selected=True then ListBox1.Items.LoadFromFile('22.txt'); if TreeView1.Items.Item[6].Selected=True then ListBox1.Items.LoadFromFile('23.txt'); if TreeView1.Items.Item[7].Selected=True then ListBox1.Items.LoadFromFile('24.txt'); if TreeView1.Items.Item[8].Selected=True then ListBox1.Items.LoadFromFile('25.txt'); end;
It is necessary for me that when I click on the branch with the index 3, the form was shown and the text on the form was entered immediately. And it does not work right away. First, a form appears, and if you click on a branch again, a label will appear with an inscription. And it is necessary that this happens immediately. Anyone know how?