MaxGUI and Tables

BlitzMax Forums/BlitzMax Beginners Area/MaxGUI and Tables

AD(Posted 2006) [#1]
Is there a way to create a basic table gadget using MaxGUI?

Ideally, I'd like a table to have;

Product | Price
Item 1     $x.xx
Item 2     $x.xx
Item 3     $x.xx


I also require it so that if you select a row with the mouse, it highlights the row.

Many thanks.


Dreamora(Posted 2006) [#2]
No
Lists at the moment only support 1 row instead of multiple rows ...


Perturbatio(Posted 2006) [#3]
someone implemented a multiple column list and posted the code. (can't remember where, but all you should need to do is look around).


CS_TBL(Posted 2006) [#4]
You can code such an object yourself.. but that requires a little bit o' experience on that.

I figure something like a visual 2d array of the type 'TextField' and an internal 2d array of the type .. uh .. bank? string? some type?
This way your internal array can be like 100x100 orso, while visually you have like 4x2 cells on screen.

One table event function does the event stuff of all the cells, etc. etc.

And a single function serves you with the data of any given cell, like: mydata$=Tabledata$(table,x,y)
et voila, mydata$ contains the content of an EditField.


Perturbatio(Posted 2006) [#5]
in fact, I've found it:
http://www.blitzbasic.com/Community/posts.php?topic=53343


AD(Posted 2006) [#6]
Many thanks!


AD(Posted 2006) [#7]
Link doesn't work;


ERROR:Internal error




Perturbatio(Posted 2006) [#8]
works for me.


Mark Tiffany(Posted 2006) [#9]
Link doesn't work;

Change the base URL (the www.blitzbasic.com bit) to whatever you log into (blitzmax.com or blitzbasic.co.nz).