|
recently, i met a demand, it require a specially grid control with strong function,
so i spare much time to solve the problem, to search code from internet; finally, i find you code on the codeproject, I read you code and samples, i found your code a little bit closer, But there are a few questions need to be resolved; firstly, I hope the title bar of each column is a cell box, and with a checkbox on it, click on it to achieve the "select all" or "clear all", make all cells of this column is checked or unchecked; secondly, i need the text of each cell achive is similar to the hyperlink function, the mouse cursor change to a hand-shaped mousew hen the user moves the mouse into the text area into, and to perform a specific operationc when user clicked; finallay, it is best to allow each cell has a style, not a column, such as for a column, there may be one of the cells only display text, and some other cell is checkbox. can you give me some suggestion. Waiting for your reply, thank you!
My mailbox xiejun835298@sina.com.cn.
|
|
|
|
|
|
1) We are using CALXComboBoxCtrl , we are not able to display more than 6 choices for a given CALXComboBoxCtrl. Can someone throw light on this.
2) Also while trying to download help chm file from the specified location, we are getting meesages Russian language. And no help-file downloaded. Can one suggest the correct link or cause for the same?
Regards,
Prasannna
|
|
|
|
|
2) We are still looking for link to downlaod help file in english (we are getting meesages Russian language at the sites specified in discussions of this this forum)
1) Only 6 entries visible for combobox:- It was not a problm really. We are actually able to get all list using combocontrol. Only we have not enabled vertical scroll bar. hence by default combobox was showing only 6 entries fitting in its dropdown size. Currently combobox working fine but without scroll bar. This library is real good one as it has solved our need. We are working on scrollbar. Any suggestion meanwhile regarding the same are please welcome.
Thankas and Rgds,
Prasanna T
|
|
|
|
|
Thanks VERY VERY VERY much, you are my super star.
|
|
|
|
|
Dear Sir ,
Its very good grid control , And I used this for long time , But now in application we have required combo box control in second column on grid . but when insert data in combo box its shows error please help to resolved this
jassy
|
|
|
|
|
Is there a way to add/remove columns dynamically using the ALXgrid. I used removecol but it doesn't repaint the grid properly and the old column are is grayed out.If u click on the area the old column used to be, it'll crash..
|
|
|
|
|
Does anyone see the author recently?
I have some proposals for the library, but my experience not so good to implement the myself.
1) In my application when CALXCellEditCtrl control looses focus, it doesn't notify parent about it, so the parent cannot update corresponding cell data. I think, child cell controls must implement OnKillFocus to resolve this problem. My solution looks like this:
LRESULT CALXGridCtrl::onChildKillFocus(WPARAM wParam, LPARAM lParam){
SaveModifyed();
return 0;
}
2) The gird has strange behaviour, when it is empty and doesn't have simple CELLGRID cells. It simply cannot draw itself, so in my application i had to add 0-width column with dummy data. Does anyone have such a problem? I think the author should have resolved this case .
I wish someone read my posts, and post some responses
|
|
|
|
|
I have found how to specify full row select. Now i want to have selected cells have the same background color, as non selected. The row can have blue border, but all cells of the selected row must be with white background, not dark blue.
|
|
|
|
|
Can i select full rows in the grid? If not, what should i do, to code such feature?
|
|
|
|
|
This is the main question - how to get in my CAppView this mouse events in row or cell?
The second question is how to forbid cell editing (grid used only for view data, not for edit)?
|
|
|
|
|
Hi!
Is is possible to format the cells like in Microsoft Excel? (for example by using a RichEdit Control instead of Edit Control).
Thks in advance!
Appstmd
http://www.appstmd.com
|
|
|
|
|
It is possible to create the your controls (see samples ALXGridControls, ALXGridValidate), it is possible to redefine function drawing cell.
|
|
|
|
|
The row-empty control(with no row) returns 0 as number of active row. Method CALXGrid::GetActiveRow()
Ken Keray
|
|
|
|
|
Hello!
I have an idea to make ALXGrid more developed.
IMHO the library has one big defect with cell controls.
I mean, that there is no easy way to make your own cell control.
For sample, to insert own CEdit-derived control you must override
CALXGrid::CreateCellCtrl() and copy a part of the method from base class source code.
I found the way to use the CRuntimeClass class for CALXCellCtrl kinded classes.
In the first I add next virtual method
virtual CALXCellCtrl *CALXGrid::GetColCtrlRC(BYTE CtrlType, CRuntimeClass &rc) const;
This method returns CRuntimeClass data for cell control creation. I use it in CALXGrid::CreateCellCtrl(...) method. By default this returns RUNTIME_CLASS() for basic
cell controls.
But there is a problem with cell control deriving.
For sample, CALXEditCtrl is derived as public from CEdit and CALXCellCtrl.
In such case you cannot write something like next
...<br />
CALXCellCtrl *pCellCtrl = (CALXCellCtrl*)rcCell.CreateObject();<br />
if(pCellCtrl != NULL)<br />
{<br />
pCellCtrl->CreateCtrl(dwStyle,m_pGridWnd,nID);<br />
...<br />
}
But you can write the same so
CObject *pCellOb = rcCell.CreateObject();<br />
CRuntimeClass *prcPrev = rcCell.m_pfnGetBaseClass();<br />
int size = prcPrev ? prcPrev->m_nObjectSize : rcCell.m_nObjectSize;<br />
CALXCellCtrl *pCellCtrl = (CALXCellCtrl*)((BYTE*)pCellOb+size);
Of course, you must insert DECLARE_DYNCREATE() and IMPLEMENT_DYNCREATE() declarations
in code of basic cell controls and also modify their constructors as methods without parameters.
I know, that in this version CALXCellCtrl needs a reference to grid contol, but you can
get it in CALXCellCtrl::CreateCtrl() methods (from parent). To convert CWnd* ptr to CALXGrid* ptr
use the way, described above.
Ken Keray
|
|
|
|
|
I'm not able to build GridAPP, with VC 6.0:
ALGrid\Samples\GridApp\res\ALXGrid.rc(13) : fatal error RC1015: cannot open include file "ALXGrid.rc"
What's the problem?
|
|
|
|
|
It is necessary to set path to library (menu Tools - Options... page Directories).
|
|
|
|
|
how to change the height of the row when the grid is created,i used the CALXGridView without AGS_CUSTOMFROZEN_WIDTH.you used 16 pixel,i feel too low.
how to change?thanks first
ok
|
|
|
|
|
|
When I use ALXGrid Control, I want to know whether user change the grid data,
ALXGrid Contorl can save data in default condition,How Can I know Grid is Modified Or not Modified?
|
|
|
|
|
Sample:
BOOL bModifyed = FALSE;<br />
<br />
CALXCellCtrl* pCellCtrl = GetCellCtrl(GetActiveCol(),GetActiveRow());<br />
<br />
if(pCellCtrl != NULL)<br />
bModifyed = pCellCtrl->IsModifyed();
|
|
|
|
|
It not suport in curent version.
|
|
|
|
|
ALXGrid Control is very good. But I want to get rect information (etc: cell size, rect size of cell),I cann't find calling function .huo to get rect information of cell
|
|
|
|
|
Width cell number i equal width head col number i.
iCellWidth = GetHeadColWidth(i);
Heigth all grid cell equal.
iCellHeight = GetGridRowHeight();
|
|
|
|
|