Make Table that looks like a grid

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
norrow
New User
Posts: 9
Joined: Fri Jan 08, 2016 12:19 pm
First Name: Norman
Last Name: Rowden
Company Name: Soft-Pak
City: San Diego
State / Province: California
Country: United States
Contact:

Make Table that looks like a grid

Post by norrow »

In the midst of DDS conversion....I have had a few occasions where I would like to use the advantages of a grid(sizable columns, headers, oddeven colored rows etc) but cannot use a grid because either the data is not the same or the program was simply not coded as a subfile(screen uses fixed fields that give the appearance of the subfile but each field is unique). I've tried using the "table" widget without much success as it doesn't appear to have variable column widths and provide the features I'm looking for. Has anyone done this before?
An example, is a table that has 3 columns(Description, From, To). Each row represents an item and displays how that item changed(From/To). using a table would provide the ability to align the fields in each column and with a background give the appearance of a grid/table. Also, if this was some type of layout container moving the fields all at once is much easier and less error prone.
Any suggestions?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Make Table that looks like a grid

Post by Scott Klement »

I would simply change the RPG program to write the data into a subfile.
norrow
New User
Posts: 9
Joined: Fri Jan 08, 2016 12:19 pm
First Name: Norman
Last Name: Rowden
Company Name: Soft-Pak
City: San Diego
State / Province: California
Country: United States
Contact:

Re: Make Table that looks like a grid

Post by norrow »

Thanks, I had a feeling there wasn't an easy way to do this and rewrite in many cases simply creates unwanted work with little or no payback.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Make Table that looks like a grid

Post by Scott Klement »

True, you'd only want to do it where it'd be worthwhile to take advantage of the features of the grid. (in your words, "sizable columns, headers, oddeven colored rows etc") If you don't need those features, there'd be no payback.

The grid widget has taken a lot of code to implement, somewhere in the neighborhood of (rough estimate) 9000 lines of code. So it would not be easy to duplicate it with another widget. It would be much easier to change your programs to use the actual grid. That also has the benefit that, as time passes and more features are added to the grid, they'd also be available in your programs.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests