Hi Ketil,
I think I found a bug and a problem.
The bug is that if you have a combo column and don't have any items in the combo, garbage characters appear in each cell. Also, if you do a GM_COMBOCLEAR, that same garbage appears as the first (and only) item in each combo box.
The problem is that is is necessary to also be able to do a GM_SETCELLDATA (as well as a GM_GETCELLDATA) to a combo cell so that data read in from a file can appear in the cell. Otherwise settings from a previous session cannot be saved and then read in and displayed later.
I have been playing with this control all day, and with the exception of the problems I've reported, it is simply great!
I have closely coupled it with my compiler and results are very nice.
I think I found a bug and a problem.
The bug is that if you have a combo column and don't have any items in the combo, garbage characters appear in each cell. Also, if you do a GM_COMBOCLEAR, that same garbage appears as the first (and only) item in each combo box.
The problem is that is is necessary to also be able to do a GM_SETCELLDATA (as well as a GM_GETCELLDATA) to a combo cell so that data read in from a file can appear in the cell. Otherwise settings from a previous session cannot be saved and then read in and displayed later.
I have been playing with this control all day, and with the exception of the problems I've reported, it is simply great!
I have closely coupled it with my compiler and results are very nice.
Hi all
New upload at the top.
- Fixed combobox bug. (thanks msmith)
- Added GM_CELLCONVERT message. Use it to retrive the text from any cell type.
KetilO
New upload at the top.
- Fixed combobox bug. (thanks msmith)
- Added GM_CELLCONVERT message. Use it to retrive the text from any cell type.
KetilO
Hi Ketil,
The garbage data in the combo is gone.
I can now read data from the combo cells.
How do I put data into indivdual combo cells (like when loading a file into the grid) or, alternatively how to programatically select data from each combo to appear in each cell?
Could you do the inverse of GM_CELLCONVERT to allow writing (by the program, NOT the user) into an individual combo cell?
Also, how about deleteing a row?
Thank you for the quick response, and thank you again for this fine control.
The garbage data in the combo is gone.
I can now read data from the combo cells.
How do I put data into indivdual combo cells (like when loading a file into the grid) or, alternatively how to programatically select data from each combo to appear in each cell?
Could you do the inverse of GM_CELLCONVERT to allow writing (by the program, NOT the user) into an individual combo cell?
Also, how about deleteing a row?
Thank you for the quick response, and thank you again for this fine control.
Hi Ketil,
Wish list:
GM_DELCOL
GM_INSERTCOL
Really dreaming :)
GM_SETCELLBCKCOLOR
GM_SETCELLTEXTCOLOR
Fonts
Row Headers
Wish list:
GM_DELCOL
GM_INSERTCOL
Really dreaming :)
GM_SETCELLBCKCOLOR
GM_SETCELLTEXTCOLOR
Fonts
Row Headers
Hi msmith
The combo cell works with indexes, not text. You need to convert text into indexes yourself. You select a certain combo text by setting it's index. It seem to me you are using the combo cell in a way it is not intended.
Deleting a row causes no problems.
Colums can not be added after data has been inserted into the grid.
Individual cell properties is a bit overkill for such a simple grid control.
KetilO
The combo cell works with indexes, not text. You need to convert text into indexes yourself. You select a certain combo text by setting it's index. It seem to me you are using the combo cell in a way it is not intended.
Deleting a row causes no problems.
GM_DELCOL
GM_INSERTCOL
Really dreaming
GM_SETCELLBCKCOLOR
GM_SETCELLTEXTCOLOR
Fonts
Row Headers
GM_INSERTCOL
Really dreaming
GM_SETCELLBCKCOLOR
GM_SETCELLTEXTCOLOR
Fonts
Row Headers
Colums can not be added after data has been inserted into the grid.
Individual cell properties is a bit overkill for such a simple grid control.
KetilO
Hi Ketil,
Delete row is now working for me. I don't understand why it also causes a scroll to the bottom of the grid. I notice that your example does not do that. I'll study your example.
How do you set a combo's index? If I could do that, then combo would be fine.
Thanks for all your help.
Delete row is now working for me. I don't understand why it also causes a scroll to the bottom of the grid. I notice that your example does not do that. I'll study your example.
How do you set a combo's index? If I could do that, then combo would be fine.
Thanks for all your help.
Hi msmith
The combo index is automatic. The first item you add gets index 0, the next 1 and so on.
KetilO
The combo index is automatic. The first item you add gets index 0, the next 1 and so on.
KetilO
Ketil,
Is there any way for the program to control what text is displayed in an individual combo cell?
Is there any way for the program to control what text is displayed in an individual combo cell?
Hi msmith
Yes, by using GM_SETCELLDATA. The data will be an index (binary dword) and the corresponding text will show in the cell.
KetilO
Yes, by using GM_SETCELLDATA. The data will be an index (binary dword) and the corresponding text will show in the cell.
KetilO
Hi Ketil,
Could you PLEASE post an example.
Could you PLEASE post an example.
Hi Ketil,
Nevermind, I figured it out.
Thank you so much for all your help!
Nevermind, I figured it out.
Thank you so much for all your help!
Hi Ketil,
I noticed that GM_RESETCONTENT also resets the header text. Is there any way to put new text into the headers after using GM_RESETCONTENT?
I noticed that GM_RESETCONTENT also resets the header text. Is there any way to put new text into the headers after using GM_RESETCONTENT?
Hi
That is a bug. Use GM_SETHDRTEXT to set the header text.
KetilO
That is a bug. Use GM_SETHDRTEXT to set the header text.
KetilO
Hi all
New upload at the top.
- Fixed bug where columnheader text was lost on GM_RESETCONTENT.
KetilO
New upload at the top.
- Fixed bug where columnheader text was lost on GM_RESETCONTENT.
KetilO
Hi all
New upload at the top.
- Added GM_RESETCOLUMNS.
- Added demo showing how to connect to access database.
KetilO
New upload at the top.
- Added GM_RESETCOLUMNS.
- Added demo showing how to connect to access database.
KetilO
Possibly you know this bug on Griddemo4.
Using the attached database, Griddemo4.exe fails
when openning "Order Details" Table.
Thank you for sharing your excellent programming.
ipadilla
Using the attached database, Griddemo4.exe fails
when openning "Order Details" Table.
Thank you for sharing your excellent programming.
ipadilla
Hi Ketil,
If i have 2 columns with button in a row, only one button is displayed when i browse the rows.
Seems like only one button is refreshed when i select another row
If i have 2 columns with button in a row, only one button is displayed when i browse the rows.
Seems like only one button is refreshed when i select another row
Hi Amokila
Thanks for bug report.
There was a paint problem. New upload at the top.
KetilO
Thanks for bug report.
There was a paint problem. New upload at the top.
KetilO
Hi, KetilO. I want to use your RAGrid in my VB app just like I wanted to use your RAEdit serveral months ago. I wonder if it take much trouble for u to make a VB demo of RAGrid. I'll be VERY appreciated if u can help.
i doubt KetilO code in VB ( who really want to code in that cr*p anyway).
you can use the control by adding a 'user custom control' in vb by ur self (or just google how to).
since its a dll, it wont be hard to load it up and use it.
you can use the control by adding a 'user custom control' in vb by ur self (or just google how to).
since its a dll, it wont be hard to load it up and use it.