Results 1 to 10 of 10

Thread: Tree View indent

  1. #1

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479

    Tree View indent

    Can you change the amount of indent between node levels in a tree view.

  2. #2
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    only way i can think of is adding it as another child (child of a child)
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  3. #3
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    the .Indentation property?
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  4. #4

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Originally posted by rjlohan
    the .Indentation property?
    Great! I hadn't noticed that!

  5. #5
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    that works accross the board though, or is that what you're after??

    i assumed you meant different amounts of indent for each node etc
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  6. #6

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Originally posted by darre1
    that works accross the board though, or is that what you're after??

    i assumed you meant different amounts of indent for each node etc
    Yes, the first level text is all long, but the third level is short, so I want to use different indents.

  7. #7
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    this might sound like a dumb idea but what about padding them with spaces i.e. " node caption"
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

  8. #8
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Well, without API, it's probably not possible. You may need to create your own TreeView with the appropriate windows messages. Is it really worth the trouble?
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  9. #9

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Originally posted by darre1
    this might sound like a dumb idea but what about padding them with spaces i.e. " node caption"
    I want to make them as small as possible.
    So padding defeats the main objective.
    I'm just bloody awkward.

  10. #10
    Bouncy Member darre1's Avatar
    Join Date
    May 2001
    Location
    Peterborough, UK
    Posts
    3,828
    well you could set the Indentation to 0
    then all 1st level children are padded with a space
    2nd level childre are padded with 2 spaces etc.

    sounds crappy i know but it sounds easy too
    Confucious say, "Man standing naked in biscuit barrel not necessarily ****ing crackers."

    Don't forget to format your code in your posts

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width