PDA

View Full Version : Simulating a Table in a ListBox



jwarrent
03-06-2004, 01:04 PM
I've created a utility to easily manipulate, add, and delete content from INI files I use on my project, and part of the interface is presenting the data in a listbox. What I would like to do is present each entry in the INI in a table format so that the details of each entry are properly spaced apart. Right now I use the TAB character to get my proper spacing because I can't use spaces or any other character since the spacing between each letter is different. But using TABs makes it difficult to know the right amount of TABs to add between words so all the entries line up properly. Anyone have an easier solution? A different approach maybe? :)

Brett
03-06-2004, 03:50 PM
You could always dynamically create an HTML page that uses HTML tables and the open it in a Web object.

jwarrent
03-06-2004, 04:16 PM
Thanks Brett-
Yes, that's true, though the purpose of the listbox was being able to quickly see some of the important values for all the sections in an INI file, then click on a section to show all the values in that section so they could be edited individually. I assume that's not directly possible with a web object right?

TJ_Tigger
03-06-2004, 08:14 PM
You could build multiple html files and link them in a webobject. Then you could navigate using hyperlinks within the webobject. For instance you could build the following html files

index.html
section1.html
section2.html
section3.html
section4.html
section5.html
section6.html

On the index page you would build links to your various sections then the section pages would contain the data from their respective sections.

HTH

jwarrent
03-07-2004, 05:58 PM
Thanks again! I'll look into it. Not as convenient as a ListBox is with regards to the rest of the workflow, but it is definitely a solution if I need the benefits of a visual 'table'. :)

TJ_Tigger
03-07-2004, 09:10 PM
Here is an example of what I was thinking. I hope this helps.