Work in progress - xGrid
Posted: Fri Sep 16, 2005 9:25 am
This is a very very very early version of something I am working on. As such, it's not a code release but an exe to try out. It's all PB commands and WinAPI.
Basically, I'm trying to create a spreadsheet ala Microsoft Excel. I'm starting from the ground up building a custom 'control'. This is all hand drawn. There is no "real" limit to the number of columns and rows but for the purpose of this demo, I've limited it. The limit is not hard coded so it can be removed very easily.
The only things you can do currently in the demo is resize columns or rows, select columns or rows (even ranges) and scroll.
The base code is in place to allow multiple 'sheets' per control. Also, since I'm hand-drawing everything, it will be no problems at all to have all kinds of nice formatting per cell. Colors, alignment, etc... Multiple types will work per cell - strings or numbers (probably add in jack's nice double library for better math stuffs), etc... Sorting or whatever can be added nicely.
The nice thing about the way I have it set up is that it's all virtual. That's why it can display a theoretically unlimited amounts of rows and columns. They don't actually exist. The only time they exist is if you make a change to them. For example, I don't store the widths of the columns unless you change them. And then I store the width only for the columns that are changed. Fairly lightweight.
I'll work with it until I finish the current part and add in the cell manipulation and then I will post the code. Not sure if I will continue working on it after that. I guess it depends on if there's interest in it.
Without further ado, here is the program. It's an exe compressed by rar so just unrar it. No code is publicly available yet.
http://www.seijin.net/Storage/xGrid.rar
Let me know how it looks. No need to give me bug reports as I'm very aware of what current problems are ^_^ I'm just curious as to what y'all think of it so far. If it looks promising or not. I should have cell text editing by Monday (it's late Thursday night now).
EDIT: Fixed broken link. Sorry! ^_^
Basically, I'm trying to create a spreadsheet ala Microsoft Excel. I'm starting from the ground up building a custom 'control'. This is all hand drawn. There is no "real" limit to the number of columns and rows but for the purpose of this demo, I've limited it. The limit is not hard coded so it can be removed very easily.
The only things you can do currently in the demo is resize columns or rows, select columns or rows (even ranges) and scroll.
The base code is in place to allow multiple 'sheets' per control. Also, since I'm hand-drawing everything, it will be no problems at all to have all kinds of nice formatting per cell. Colors, alignment, etc... Multiple types will work per cell - strings or numbers (probably add in jack's nice double library for better math stuffs), etc... Sorting or whatever can be added nicely.
The nice thing about the way I have it set up is that it's all virtual. That's why it can display a theoretically unlimited amounts of rows and columns. They don't actually exist. The only time they exist is if you make a change to them. For example, I don't store the widths of the columns unless you change them. And then I store the width only for the columns that are changed. Fairly lightweight.
I'll work with it until I finish the current part and add in the cell manipulation and then I will post the code. Not sure if I will continue working on it after that. I guess it depends on if there's interest in it.
Without further ado, here is the program. It's an exe compressed by rar so just unrar it. No code is publicly available yet.
http://www.seijin.net/Storage/xGrid.rar
Let me know how it looks. No need to give me bug reports as I'm very aware of what current problems are ^_^ I'm just curious as to what y'all think of it so far. If it looks promising or not. I should have cell text editing by Monday (it's late Thursday night now).
EDIT: Fixed broken link. Sorry! ^_^