GridViewGadget()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

GridViewGadget()

Post 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
Last edited by Warmonger on Thu Sep 20, 2012 3:11 am, edited 1 time in total.
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: GridViewGadget()

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
MuuSer
User
User
Posts: 14
Joined: Sat Feb 06, 2010 8:24 pm
Location: Estonia

Re: GridViewGadget()

Post 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.
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Re: GridViewGadget()

Post 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
Dear Optimist, Pessimist,
and Realist,

While you guys were
busy arguing about the
glass of water, I DRANK IT !

Sincerely,
the Opportunist
MuuSer
User
User
Posts: 14
Joined: Sat Feb 06, 2010 8:24 pm
Location: Estonia

Re: GridViewGadget()

Post 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.
User avatar
deeproot
Enthusiast
Enthusiast
Posts: 284
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: GridViewGadget()

Post 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.
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Re: GridViewGadget()

Post 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
Dear Optimist, Pessimist,
and Realist,

While you guys were
busy arguing about the
glass of water, I DRANK IT !

Sincerely,
the Opportunist
User avatar
captain_skank
Enthusiast
Enthusiast
Posts: 639
Joined: Fri Oct 06, 2006 3:57 pm
Location: England

Re: GridViewGadget()

Post 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.
User avatar
nblackburn
User
User
Posts: 67
Joined: Mon Aug 19, 2013 1:22 am
Location: United Kingdom
Contact:

Re: GridViewGadget()

Post by nblackburn »

I am still shocked PB doesn't have a datagrid so i definitely support this idea.
Image
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: GridViewGadget()

Post by davido »

+1
DE AA EB
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: GridViewGadget()

Post by fsw »


I am to provide the public with beneficial shocks.
Alfred Hitshock
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: GridViewGadget()

Post 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?
Post Reply