Again about grids (linking a images to a listview).
Posted: Sun Feb 17, 2013 3:11 pm
Hi,
In my work on converting my code from GB32 to PB I'm wondering how I can setup a listview with multiple columns and row (so that it becomes a grid like an excel page) where each cell get's it's own picture. The picture will be build up at runtime as they visualize user data which can change according to his data created.
Maybe it's easier if I sum up what must be possible (like I did in GB32) :
1) 8 or more rows set as default (by the user preferences);
2) multiple columns;
3) cells (items) with a fixed size (like 150 x 100);
4) extra columns 'automaticly' added at runtime when more data is loaded;
5) single cell selections (at every x-y-position, not a complete row);
6) detection of the column-ID and row-ID of that cell (to recover the exact data);
7) react on keyboard commands (go left, right, up, down);
8] scrollbars appearing if more columns (rows) are added.
9) remove, insert, move, copy cells to other x-y-positions;
I suppose most of these must be done with the listview api's, but I'm not sure as PB beginner.
If yes, I can do it, as I did this already in GB32, yet one question will be left then : how to link an ImageGadget to the listview (like an Imagelist in GB32 with the win api's) ?
If NO, then how to ?
When being bussy with listview api's I often thought of creating my own grid, as all those api's windows use for it's listview are incredible extensive. I found already a lot of sources related to creating a gird, also the listview.dll, but a lot of them are out of time (PB version 3 or 4 etc.), bad documented to use and others are much to complicated for my job.
So, if anyone has usefull up to date info or good links on this, all is welcome.
Thanks,
Joris
In my work on converting my code from GB32 to PB I'm wondering how I can setup a listview with multiple columns and row (so that it becomes a grid like an excel page) where each cell get's it's own picture. The picture will be build up at runtime as they visualize user data which can change according to his data created.
Maybe it's easier if I sum up what must be possible (like I did in GB32) :
1) 8 or more rows set as default (by the user preferences);
2) multiple columns;
3) cells (items) with a fixed size (like 150 x 100);
4) extra columns 'automaticly' added at runtime when more data is loaded;
5) single cell selections (at every x-y-position, not a complete row);
6) detection of the column-ID and row-ID of that cell (to recover the exact data);
7) react on keyboard commands (go left, right, up, down);
8] scrollbars appearing if more columns (rows) are added.
9) remove, insert, move, copy cells to other x-y-positions;
I suppose most of these must be done with the listview api's, but I'm not sure as PB beginner.
If yes, I can do it, as I did this already in GB32, yet one question will be left then : how to link an ImageGadget to the listview (like an Imagelist in GB32 with the win api's) ?
If NO, then how to ?
When being bussy with listview api's I often thought of creating my own grid, as all those api's windows use for it's listview are incredible extensive. I found already a lot of sources related to creating a gird, also the listview.dll, but a lot of them are out of time (PB version 3 or 4 etc.), bad documented to use and others are much to complicated for my job.
So, if anyone has usefull up to date info or good links on this, all is welcome.
Thanks,
Joris