Solved

Changing images in a TTreeView

Posted on 1998-12-22
2
271 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
2 Comments
 
LVL 7

Accepted Solution

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

Author Comment

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now