Solved

Changing images in a TTreeView

Posted on 1998-12-22
2
292 Views
Last Modified: 2010-04-04
I'd made a program to change the image of a ttreenode in a ttreeview when I make a double click in that node, the problem is that when I selected that node again the first image of the imagelist appears instead of the one I choose when I did the double click. How can I solve that? I'm ussing Delphi 4.
0
Comment
Question by:girona
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 20 total points
ID: 1352634
You need to handle both OnGetImageIndex and OnGetSelectedIndex. It seems like you are not responding to OnGetSelectedIndex...
0
 

Author Comment

by:girona
ID: 1352635
Thanks, I didn't know there was a SelectedIndex property.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question