Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Treeview - different pics for nodes?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-14-2007, 07:23 PM
Junior Member
 
Join Date: Jul 2007
Posts: 40
Default Treeview - different pics for nodes?

Hello,

is it possible to change the picture of a single node in a treeview, or at least to deactivate the picture for single nodes? I plan to make some kind of file manager and listet files shouldn't have a directory symbol.

Thanks for any help!
Reply With Quote
  #2 (permalink)  
Old 07-14-2007, 07:31 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can set the image of each node.
Use Node.ImageIndex and set it to the index of the image you want.
Reply With Quote
  #3 (permalink)  
Old 07-14-2007, 08:22 PM
Junior Member
 
Join Date: Jul 2007
Posts: 40
Default

Quote:
Originally Posted by Erel View Post
You can set the image of each node.
Use Node.ImageIndex and set it to the index of the image you want.
Thank you very much for your help, Erel but somehow it doesn't work for me. I'am using your treeview-example and tryed it with control(node).imageindex and node2.imageindex in the findfolders-sub, but without success. control(node).imageindex within the findfolders loop always changes the whole tree and node2.imageindex brings a compiler error.

Perhaps you have some further adwise for me?

Thanks in advance and nice regards:

token
Reply With Quote
  #4 (permalink)  
Old 07-15-2007, 05:14 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Attached is a small modification to FolderChooser example which also shows files.
The files icons are different than the folders icons.
Attached Files
File Type: zip FolderChooser.zip (11.4 KB, 43 views)

Last edited by Erel : 03-21-2008 at 04:36 PM. Reason: Code was modified to support V6.0.
Reply With Quote
  #5 (permalink)  
Old 07-15-2007, 05:31 AM
Junior Member
 
Join Date: Jul 2007
Posts: 40
Default

Quote:
Originally Posted by Erel View Post
Attached is a small modification to FolderChooser example which also shows files.
The files icons are different than the folders icons.
Many thanks Erel! I'll try it now.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quest for pics of game of cards Stellaferox Questions (Windows Mobile) 3 01-25-2008 10:13 PM
Adding Data to TreeView Nodes Woinowski Basic4ppc Wishlist 7 01-07-2008 10:32 AM
Bug in TreeView.dll/ControlsEx.dll? specci48 Bug Reports 4 09-26-2007 02:45 PM
TreeView.Control dzt Bug Reports 3 08-29-2007 01:05 PM
TreeView event magi6162 Questions (Windows Mobile) 3 08-29-2007 10:29 AM


All times are GMT. The time now is 10:49 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0