Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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
 
Old December 22nd, 2005, 10:55 AM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

 
Old December 22nd, 2005, 06:26 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.
 
Old December 23rd, 2005, 02:28 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old December 27th, 2005, 06:20 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great, not so dirty after all..... ;)

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Interview Questions, C# Interview Questions, dotnetuncle .NET Framework 2.0 4 June 22nd, 2019 07:03 AM
TreeView sumith ASP.NET 2.0 Basics 2 October 2nd, 2007 11:42 PM
Formatting TreeView AspDotNetProgrammer ASP.NET 2.0 Basics 0 August 10th, 2007 05:31 PM
treeview Beulah ASP.NET 1.0 and 1.1 Basics 0 September 10th, 2003 09:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.