Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
aleatprog
Posted - Jul 13 2019 : 09:53:49 1. Add to the "Layers" demo an Action "removelayer"
2. Copy the code of the procedure Tfmain.btnRemoveClick and paste it in the action procedure
begin ImageEnView1.LayersRemove(); RefreshControls(); end;
3. Connect a popupmenu with the layermview and add the action to the menu
4. Run the demo and create some layers (for example 4)
5. Delete the top layer (#4) using the popup menu
The layer #4 will be removed but the error message "List index out of bounds (4)" appears. No error message appears when you remove another but the top layer or if you remove the layer #4 using the popup menu connected to the viewer.
Can you reproduce this behaviour and do you know a workaround in order to correct the error?
Thank you, Al
1 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Jul 15 2019 : 20:56:37 Hi Al
If the error goes away when you disconnect the TImageEnLayerMView then we have a fix.