1. RE: EuGrid: Grid Control for Win32lib

Dog-gone it, Phil.  

I already submitted one (a very early release) about 3 weeks ago and 
here you've been working on one too!  :)

I'm very interested in seeing what you did and how you approached 
creating the grid.  I'm a few days away from another submission of my 
grid control as well.  

Jonas
Phil Russell wrote:
> Hi Everyone,
> 
> I have just sent Rob version 1.0 of EuGrid - my data grid control for 
> win32lib. I have been working on it off and on (mostly off) for the last 
> 
> year and I *finally* got a release together.  
> 
> Features:
> =========
> 
> -Built using win32lib and the Windows API
> -Supports multiple grid controls in a single application
> -Size of dataset limited only by Euphoria memory limits
> -Allows in-place editing of data
> -Grid columns and rows can be created, changed and deleted at runtime
> -Flexible control over font, color and text alignment attributes
> -Grid cells can be individually formatted
> -User-resizable columns
> 
> HTML documentation and three demo programs are included.  I would be 
> very grateful if you could have a look and let me know what you think.
> 
> Many Thanks,
> 
> Phil Russell
> 
>

new topic     » topic index » view message » categorize

2. RE: EuGrid: Grid Control for Win32lib

Phil (and everyone else)...

Just tried your EuGrid and I must say I was quite impressed!

To that end, I hereby announce that I will STOP working on my grid 
control.  If you were using mine or plan on using mine then take a look 
at Phil's control.

I noticed that you have on future enhancements check boxes, combo box, 
button, picture, etc.  Could I suggest a date control that brings up a 
date selector?  Also a control that allows selection of a file that 
brings up an "Open File" dialog box.  

Good work!

Jonas

new topic     » goto parent     » topic index » view message » categorize

3. RE: EuGrid: Grid Control for Win32lib

Hi Jonas,

Thanks very much for your comments.  I would be particularly interested 
in any feedback you have as you belong to the (very small) club of 
people who know both the joy and pain of grid control construction blink


Jonas  Temple wrote:
> 
> I noticed that you have on future enhancements check boxes, combo box, 
> button, picture, etc.  Could I suggest a date control that brings up a 
> date selector?  Also a control that allows selection of a file that 
> brings up an "Open File" dialog box.  

Can't see why not. If memory serves this was implemented in the first 
version of your grid control - do you mind if I nab the code?

BTW I am currently trying to figure out how to implement a combo box 
cell type. Using a native combo box is a problem as it seems to be 
difficult/impossible to size them correctly. Did you get any further 
with the combo box cell type in the latest version of your grid control?

Regards,

Phil

new topic     » goto parent     » topic index » view message » categorize

4. RE: EuGrid: Grid Control for Win32lib

Phil, 

Please, help yourself to whatever suits your needs in my grid.  I liked 
that your grid was closer to the API as changes in win32lib would 
probably not break the grid.  Hopefully mine will translate as I used 
win32lib calls for the windows stuff.

I wound up simulating a drop down by creating an edit control and then 
placing a button with a '?' as the caption to the right of the edit.  
Then when the button was pressed I would show a list box right below the 
edit control.  Probably not the best way but all I could figure out 
using win32lib.

I did notice a couple of things (minor) with your grid.  Using the 
simple.exw example, tab over to an email address and press Enter in the 
edit control.  The text disappears and when you move off the control a | 
is displayed in the first position of the cell.  Move back to the cell 
and the text disappears.  I assume this is because of the enter key 
inserting a new line into the control.

Also, when you tab to the right to a cell that is partially displayed it 
would be nice if the grid automatically adjusts to display the entire 
cell.

Again, just minor things.  I can't tell you how relieved I was today 
when I realized I didn't have to keep banging my head to get mine to 
work!.

Jonas
Phil Russell wrote:
> Hi Jonas,
> 
> Thanks very much for your comments.  I would be particularly interested 
> in any feedback you have as you belong to the (very small) club of 
> people who know both the joy and pain of grid control construction blink
> 
> 
> Jonas  Temple wrote:
> > 
> > I noticed that you have on future enhancements check boxes, combo box, 
> > button, picture, etc.  Could I suggest a date control that brings up a 
> > date selector?  Also a control that allows selection of a file that 
> > brings up an "Open File" dialog box.  
> 
> Can't see why not. If memory serves this was implemented in the first 
> version of your grid control - do you mind if I nab the code?
> 
> BTW I am currently trying to figure out how to implement a combo box 
> cell type. Using a native combo box is a problem as it seems to be 
> difficult/impossible to size them correctly. Did you get any further 
> with the combo box cell type in the latest version of your grid control?
> 
> Regards,
> 
> Phil
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. RE: EuGrid: Grid Control for Win32lib

Hi Jonas,

Jonas  Temple wrote:
> Phil, 
> 
> Please, help yourself to whatever suits your needs in my grid.  I liked 
> that your grid was closer to the API as changes in win32lib would 
> probably not break the grid.  Hopefully mine will translate as I used 
> win32lib calls for the windows stuff.

Thanks!

> 
> I wound up simulating a drop down by creating an edit control and then 
> placing a button with a '?' as the caption to the right of the edit.  
> Then when the button was pressed I would show a list box right below the 
> 
> edit control.  Probably not the best way but all I could figure out 
> using win32lib.

Yeah - I am starting to suspect that might be what I have to do. I have 
started looking at owner-draw combo boxes but then you have to code 
*absolutely everything* including painting the contents of the list box 
etc.  Sigh...

> 
> I did notice a couple of things (minor) with your grid.  Using the 
> simple.exw example, tab over to an email address and press Enter in the 
> edit control.  The text disappears and when you move off the control a | 
> 
> is displayed in the first position of the cell.  Move back to the cell 
> and the text disappears.  I assume this is because of the enter key 
> inserting a new line into the control.

You're quite right. The reason is that the edit window that I use is 
defined as a multi-line edit field because a single line edit field 
displays a different caret on win95 depending on the text alignment of 
the field.  For some reason defining a multi-line edit field makes this 
problem go away. It occurred to me a while ago to include a column 
property of single/multi-line edit for editable fields and disallow 
enter key input for single line edits.  This would allow users to enter 
several lines of text so long as they made the row height large enough. 
I forgot all about it until you reminded me...

> 
> Also, when you tab to the right to a cell that is partially displayed it 
> 
> would be nice if the grid automatically adjusts to display the entire 
> cell.

Good point - the cell visibility processing doesn't handle this at the 
moment. 

>
> Again, just minor things.  I can't tell you how relieved I was today 
> when I realized I didn't have to keep banging my head to get mine to 
> work!.

I know what you mean.  I think if I had realised how much work it was 
going to take to get it working even half-way right I probably wouldn't 
have bothered. I actually had a fairly functional version about 6 months 
ago but the code was just too poorly structured and inflexible to allow 
for changes.  I went back and rewrote it from scratch - which took 
forever but at least now it is fairly easy to modify.  I can't tell you 
how relieved I was to finally release the d**n thing. 

Thanks again for the feedback,

Phil

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu