Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

OnGetImageIndexEx won't work if images not assign 8 years 6 months ago #8327

  • Alexandr
  • Alexandr's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 62
  • Thank you received: 2
Hello Community.

I found a small bug in that conponent (TBaseVirtualTree, TVirtualStringTree, mb also in TVirtualDrawTree).

OnGetImageIndexEx event won't work, if images property of the component is empty.
Reproduce:
1. Drop component. assign event, set break on begin. Run. Application will run.
2. Reset debugger, drop TImageList, attach it to Images property of the component, Run. Debugger will stop app on your break.

Why it's a bug:
1. Event OnGetImageIndex make's possible get images by it's index from TImageList which is attached to Images property.
2. Event OnGetImageIndexEx make's possible get images by index from any other TImageList that's may be not linked directly with component.

I think, Event 2, must be called always, it it assigned.

Please Log in or Create an account to join the conversation.

Last edit: by Alexandr.
  • Page:
  • 1