Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
TreeView component doesn't save icons Posted by OxyzN on 3 Jul 2003 at 4:53 AM
I use Delphi 2 (yes, I know it's old)...
When I save the items of a TreeView using it's own SaveToFile
method, it only saves the nodes, it doesn't save the icons
from them ImageList. The problem is that the parent items have
a different icon than their child items. When I load the file
again to the TreeView, all parents and respective child items have
the same icon. Is there any way to put the correct icons again? Or is there any component like TreeView that saves both the nodes and the icon references?
Report
Re: TreeView component doesn't save icons Posted by zibadian on 3 Jul 2003 at 5:33 AM
: I use Delphi 2 (yes, I know it's old)...
: When I save the items of a TreeView using it's own SaveToFile
: method, it only saves the nodes, it doesn't save the icons
: from them ImageList. The problem is that the parent items have
: a different icon than their child items. When I load the file
: again to the TreeView, all parents and respective child items have
: the same icon. Is there any way to put the correct icons again? Or is there any component like TreeView that saves both the nodes and the icon references?
:
I would suggest that you write your own save routine, which saves the icon indexes along with the names.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.