MaxGUI and Tables
BlitzMax Forums/BlitzMax Beginners Area/MaxGUI and Tables
| ||
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. |
| ||
No Lists at the moment only support 1 row instead of multiple rows ... |
| ||
someone implemented a multiple column list and posted the code. (can't remember where, but all you should need to do is look around). |
| ||
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. |
| ||
in fact, I've found it: http://www.blitzbasic.com/Community/posts.php?topic=53343 |
| ||
Many thanks! |
| ||
Link doesn't work; ERROR:Internal error |
| ||
works for me. |
| ||
Link doesn't work; Change the base URL (the www.blitzbasic.com bit) to whatever you log into (blitzmax.com or blitzbasic.co.nz). |