Results 1 to 3 of 3

Thread: Dynamic Treeview Column Icons

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Barrie, ON
    Posts
    191

    Dynamic Treeview Column Icons

    Hi

    In the treeview there is a "column icons" property. Is there a way to specify a delegate for this so that the icons could be changed depending on a calculated value or a values in the table?

    This would also be useful in the grid and listview.

    Thanks
    Simon
    Last edited by dcipher; 2013-09-18 at 16:02. Reason: added more detail

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22
    mytree.setListItem(nRow, nColumn, cCaption)

    cCaption can be "text#icon"

    where icon can be e.g. app:/icon_name.png or lib:/icon_name.png

    This will dynamically change the caption and its icon.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Barrie, ON
    Posts
    191
    So in this case I either load the tree manually or run through all the nodes after using a "SQL Select" statement to set the icons. Is there anything similar for the grid and listview?

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us