ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Error using Popup menu in LayerMView

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format  BoldItalicizedUnderline Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailBrowse for an image to attach to your post Browse for a zip to attach to your post Insert CodeInsert QuoteInsert List


Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

Check here to subscribe to this topic.

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


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,
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.

Please confirm and email me.

Xequte Software