Page 1 of 1

GridViewGadget()

Posted: Fri Sep 14, 2012 11:23 pm
by Warmonger
It would be nice to have native support for editable GridView() control. So that excel, database, and other types of GUI applications can be easily created.

Code: Select all

GridViewGadget(#Gadget, x, y, Width, Height, [Flags])
And add a option flag parameter to the AddGadgetColumn() function.

Code: Select all

AddGadgetColumn(#Gadget, Position, Title$, Width, [Flags])
With possible flags such as.

Code: Select all

#PB_Column_Edit = Allows the column's rows to be edited.
#PB_Column_Lock = Locks the column's rows so they are not editable.
Also with the ability to use SetGadgetItemColor() for column rows.

End result (or something similar).
Image

Re: GridViewGadget()

Posted: Sat Sep 15, 2012 3:26 pm
by IdeasVacuum
+1. Definitely would be very useful. You can do it with a ListIcon (requires some API or Gnozal's lib) or DIY on a Canvas, but a native control is the real solution.

Re: GridViewGadget()

Posted: Sat Feb 02, 2013 8:31 pm
by MuuSer
+1
For those, who don’t want write only games, editable native grid gadget would be a “must be” implementation. I’m not a prophet, but I think, if in Purebasic had a luck of this kind of gadget, even more programmers would consider to use Purebasic. Thanks.

Re: GridViewGadget()

Posted: Sun Feb 03, 2013 4:56 am
by Guimauve
MuuSer wrote:+1
For those, who don’t want write only games, editable native grid gadget would be a “must be” implementation. I’m not a prophet, but I think, if in Purebasic had a luck of this kind of gadget, even more programmers would consider to use Purebasic. Thanks.
And you think for a game editor a Gadget like this is useless ?

Anyway, +1 to have a native GridGadget()

Best regards
Guimauve

Re: GridViewGadget()

Posted: Sun Feb 03, 2013 10:10 am
by MuuSer
Guimauve wrote: And you think for a game editor a Gadget like this is useless ?
My bad. I think rare. Mostly I’m a dreamer. Of course there are games that not use just plain Ogre. :)

As a former VB6 user I just miss simple opportunity of manipulating data. In our days computers a mostly used of course for gaming but also for collecting, holding, manipulating and visualizing data. Collecting and manipulating would be much easier if there would be native multiplatform possibility to edit data in the grid. Yes – thanks to very amazing Canvas gadget it’s possible to anybody build ourselves grids for every taste, but then blurs main qualities of PureBasic – easiness and rapidity. Also we can use third party grid systems, but then we depend from them also and that is not good prospect.

What I want to say is – as also user of RealStudio, I can tell, that they have somehow editable grid system – not so easy to use but workable. Alas their printing and reporting capability is a big joke and I’m not happy to pay them not just small money every year. Instead of that I would like spend that money (or maybe little few :) ) for PureBasic if there were tools for manipulating data in grids. Printing in PureBasic is also not so good, but anyway I can render my output to PDF and kill two flies once – have a good quality output and Acrobat Reader will be my print preview window. :)

So – if in PureBasic had native editable gridgadget and maybe some improved approach to printers, then it will be non beatable rapid development system even for serious data collection and processing tasks. Yes – it’s enough good already for that, but in my story the underlined word is rapidness and time is only that is really valuable in present day.

Thanks for reading.

Re: GridViewGadget()

Posted: Sun Feb 03, 2013 10:53 am
by deeproot
+1 also.

For many people it is the most obvious important thing that PB does not have 'out of the box'. However I imagine that this a very difficult thing to implement, especially cross-platform. So I would be happy to wait for good feature, rather than something difficult to use or unreliable. As said above - there are other options possible for now.

Re: GridViewGadget()

Posted: Sun Feb 03, 2013 3:29 pm
by Guimauve
@MuuSer

It's always possible to use a ListIconGadget() instead but with more work on the programmer side. For example, creation of first column just to show graphic information and other column for useful information. It's working but nothing more. Since we have the CanvasGadget() and few example of GridGadget() in PureArea website it's possible to create it but a native solution will be nice.

Best regards
Guimauve

Re: GridViewGadget()

Posted: Wed Feb 06, 2013 4:35 pm
by captain_skank
+1

Would also be handy to have variable row heights.

As others have said though this can all be done with the current listicongadget.

Re: GridViewGadget()

Posted: Tue Sep 10, 2013 9:20 pm
by nblackburn
I am still shocked PB doesn't have a datagrid so i definitely support this idea.

Re: GridViewGadget()

Posted: Tue Sep 10, 2013 9:58 pm
by davido
+1

Re: GridViewGadget()

Posted: Tue Sep 10, 2013 10:24 pm
by fsw

Re: GridViewGadget()

Posted: Tue Sep 10, 2013 11:20 pm
by USCode
A question is: How much functionality at a minimum do you want built into the PB grid gadget and how much should be left to the developer?

The ListIconGadget is available on all 3 platforms.
I believe the one on Windows is a native control but what about the other 2 platforms?
Is it also native on Mac/Linux or did Fred and/or Freak have to develop a custom one to make it available on all 3 platforms with the same functionality?

IF so, perhaps that custom one could then be enhanced to provide additional grid-like functionality and then used on all 3 platforms?