Sorry, I've been busy for a while!
Sending the project is a bit difficult (its 3 projects Frankensteined into 1 and they are dependant on each other through root folder. Also the project total is now 2,5GB)
I've tried alot of ways to do it but I think I can explain with a bit of script:
---------------------------------------------------------------------------------------------------
procedure Form1_in001_OnClick (Sender: TObject);
begin
Form1.ShowRecord('Inkoopstelling', 1);
end;
procedure Form1_in001_OnMouseLeave (Sender: TObject);
begin
Picture := TPicture.Create();
Picture.LoadFromFile('.\Inkoopstellingen\pics\wit.jpg');
Form1.in001.Picture := Picture;
Form1.lokatielabel.Text := 'Kies Lokatie';
Form1.lokatielabel.Enabled := False;
end;
procedure Form1_in001_OnMouseEnter (Sender: TObject);
begin
Picture := TPicture.Create();
Picture.LoadFromFile('.\Inkoopstellingen\pics\rood.jpg');
Form1.in001.Picture := Picture;
Form1.lokatielabel.Text := 'IN001';
Form1.lokatielabel.Enabled := True;
end;
--------------------------------------------------------------------------------------------------------------
As you can see the script is not very complicated or long. The problem is in this little bit of script there are 3 events for 1 object/image (click/mousenter/mouseleave)
This is the script for 'IN001'. I have to make IN001 to IN256 if you see what i mean.... so for the code above I have to click the event 3 times to have it recognize the script that corresponds with it. Then I have to do that with 256 objects/images.