IonicWind Software

Aurora Compiler => GUI => Topic started by: Haim on August 29, 2006, 03:20:21 AM

Title: Request - Grid control
Post by: Haim on August 29, 2006, 03:20:21 AM
I miss very much some kind of a grid control.
I know how to use a listview control, but this is not as elegant as it could be with a dedicated grid control (and not as easy...ÂÃ,  ;)
Will it be possible to have such a controll as part of the controls available from the dialog editor?
IMHO this would be a significant enhancement to Aurora (not that I am complaining of it in it's present condition).

Haim



Title: Re: Request - Grid control
Post by: kryton9 on August 29, 2006, 10:25:44 AM
Great request!!
Title: Re: Request - Grid control
Post by: Barney on August 29, 2006, 12:49:16 PM
Yes. It's a great request but remember that dedicated grid components like SIgrid or Egrid cost far more than Aurora. Of course, it can be done, but I'd say it would not be fair to expect Paul to write something like that for free. Perhaps a lite version to be included as part of Aurora and full blown version to be sold separately.

Barney
Title: Re: Request - Grid control
Post by: kryton9 on August 29, 2006, 01:28:11 PM
He had a grid control in ibasic, so not sure if that would add to the cost?
Title: Re: Request - Grid control
Post by: Ionic Wind Support Team on August 29, 2006, 01:54:04 PM
Never had one for IBasic.  Ian was writing one but never got the chance to finish it.
Title: Re: Request - Grid control
Post by: kryton9 on August 29, 2006, 02:01:09 PM
I thought this was a grid control, it is something I wrote in iBasic?
Title: Re: Request - Grid control
Post by: kryton9 on August 29, 2006, 02:09:40 PM
Ok, my memory loses again, just found the source code, it was a listview, sorry about that.
Title: Re: Request - Grid control
Post by: Ionic Wind Support Team on August 29, 2006, 02:17:30 PM
Yes and we already have listviews ;)

Listviews in report mode are good for displaying data, not so good for entering data in each cell. 

Title: Re: Request - Grid control
Post by: Kale on August 29, 2006, 03:10:59 PM
BabyGrid is a grid control written in C so i guess it can be ported to Aurora:

http://www.smorgasbordet.com/pellesc/sample_pc_bbg.htm
http://www.smorgasbordet.com/pellesc/contrib_babygrid.htm
Title: Re: Request - Grid control
Post by: Haim on August 29, 2006, 10:54:20 PM
Thank you all for your responses.
I will look into the 'baby grid' code - if it's not too complicated for me.

I realize that writing a full fledged grid control requires a great deal of effort. Still, I think that even a basic grid would be a very valuable addition to Aurora'a capabilities.

Haim
Title: Re: Request - Grid control
Post by: sapero on August 31, 2006, 08:47:38 AM
Hello, am i the first? ;D
Title: Re: Request - Grid control
Post by: Steven Picard on August 31, 2006, 08:51:26 AM
Sapero, you are absolutely amazing!  :D
Title: Re: Request - Grid control
Post by: Haim on August 31, 2006, 09:15:14 AM
Wow, Thank yo so much.
incredible!
Now I'll have to s l o w l y study your code!   :)
Thanks again!

Haim
Title: Re: Request - Grid control
Post by: kryton9 on August 31, 2006, 02:24:56 PM
That is really neat. definitly one to study.

I was wondering about the commented include files... did you just take what you needed from those and make the one include file?
Title: Re: Request - Grid control
Post by: sapero on August 31, 2006, 03:38:09 PM
Yup, i searched all my includes extra for you, it took a hour + extra time for finding why the parser is crashing ;)
Title: Re: Request - Grid control
Post by: Kale on August 31, 2006, 03:46:19 PM
Impressive! :)
Title: Re: Request - Grid control
Post by: ExMember001 on August 31, 2006, 04:14:55 PM
Looking good Sapero nice work ;)
Title: Re: Request - Grid control
Post by: sapero on September 01, 2006, 02:08:34 PM
Thanx.
Some xp users have a problem: with a manifest file (file or resource) - on xp sp1 with extra installed sp2 it works fine.
On xp sp2 version 2002 i see only title and the first row with A,B,C,D. What's worng?


found it! in BabyGrid::OnCreate add this before CreateWindowEx:
#emit extern InitCommonControls
#emit call InitCommonControls
Title: Re: Request - Grid control
Post by: Barney on September 01, 2006, 03:16:15 PM
I have XP SP2 2002 and everything works OK here. Perhaps they did not run the Windows Update for a while...

Barney