 |
| ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

December 22nd, 2005, 10:55 AM
|
|
Friend of Wrox
|
|
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
TreeView Formatting Questions
Hi,
How does one adjust the horizontal spacing between the + or - image and the text that it applies to. In other words, if a node is expandable, how do you adjust the distance between the button that expands and collapses the node, and the node text itself?
Thanks in advance!
Aaron
|
|

December 22nd, 2005, 06:26 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Aaron,
There might be some padding / margin settings that do this, but I don't know which one. As a dirty work-around, you can add a few transparent pixels to the images.
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

December 23rd, 2005, 02:28 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
Actually the default images that ASP.NET use have a big buffer of transparent images around them. That's why they were taking up so much space. I just cropped out the + and the -, saved to new images, and used the new images as my Collapse and ExpandImageURLs. That did the trick.
Thanks!
Aaron
|
|

December 27th, 2005, 06:20 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Great, not so dirty after all..... ;)
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|
 |