Solved

Changing images in a TTreeView

Posted on 1998-12-22
2
284 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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