StringGrid Gui Component

BlitzMax Forums/BlitzMax Module Tweaks/StringGrid Gui Component

Chris C(Posted 2005) [#1]
get it here
http://free.hostdepartment.com/c/chrisc/index.html
should be self explanatory I even did some comments as I went on...

I'm thinking of having a go at doing some postgreSQL bound gui gadgets based on MaxGui objects, would anyone find this useful?


degac(Posted 2005) [#2]
OK what I miss? I load your file in Bmax, it compiles it and then it try to open a window and close immediately without errors.
If it works it will be a very useful gadget.
thanks in advance
byez


Perturbatio(Posted 2005) [#3]
works fine for me. Looks nice too :)

OK what I miss? I load your file in Bmax, it compiles it and then it try to open a window and close immediately without errors.


Are you using win32?


degac(Posted 2005) [#4]
yes, winxp+sp2.


Chris C(Posted 2005) [#5]
@ degac - can you double check your running in debug mode, though if theres no feedback it looks like the problem could be happening in the C code

@Perturbatio can you verify the New method oddness (see code!)


Perturbatio(Posted 2005) [#6]
@Perturbatio can you verify the New method oddness (see code!)

I commented out the print command and everything compiled fine. I then removed the New Method altogether and it still compiled fine.


degac(Posted 2005) [#7]
Well...I disabled debug mode and it runs perfectly! doh?

Questions:

Is there a way to select a row or a coloumn like in excel, with the row and the coloumn draw in another color? At the moment ONLY the cell selected (and the row) is drawn in another color.

I know this is the first port to bmax...


Chris C(Posted 2005) [#8]
@perturbatio and it ran it doesnt here without that print statement which is *real* wierd...

@degac I'm holding off with the colour commands as they are only index based at the moment and I'd prefer rgb check cstringgrid.h and you'll see what I mean

I'm a bit concerned it will only work in debug mode for you and its behaving slightly differently here than on perturbatios system, anyone any ideas as to what I might be doing wrong?


Chris C(Posted 2005) [#9]
I really at a loss with debug off it doesnt work unless somthing is printed in the new or initialise method
a printf in
extern "C" CStringGrid* newCStringGrid(int x,int y,HWND hwnd,HINSTANCE hi)
will also make it work

Please someone save my sanity I just cant suss it its very strange


Grisu(Posted 2006) [#10]
Any update on this?


Chris C(Posted 2006) [#11]
yeah but on another thread if you looked...
I remember a stunning lack of interest


Brucey(Posted 2006) [#12]
You shall gain my interest once you port it to Linux ;-)


Grisu(Posted 2006) [#13]
Dream on Brucey!


Chris C(Posted 2006) [#14]
okay m8 you convert the C++ code to gtk and you're on ;p


Grisu(Posted 2006) [#15]
So you still work on this or is this dead?


Chris C(Posted 2006) [#16]
well the origional is not being updated and as far as I know no one uses it...

You have all the source, you are free to contribute improvements