 |
|
|
 |
|
 |
Message:- Any one can tell me how to remove flickering occurring in my grid view.
Problem is that I am fetching some data and refreshing it directly into my grid but when it populate data then, due to refreshing it, it is flickering in the grid view.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
Hallo all,
This grid seems be almost perfect. But I have one problem (more of course, but one that is so serious that I have now to decide to use it or not).
I'm using the grid in a view, and I always have to click in the grid first, before I con scroll with the keyboard. So I cannot work without mouse. After clicking, it's perfect. But I have an MDI-progam, and it's making me nervous to have to click into the grid every time after changing the window.
Thought that I made something wrong but tried it even with the demo-program 'gridctrl_in_view' - the same probelm???
Any answer would be helpful and I would be happy if I could decide to use this grid, Gerard
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
 |
I need s VB source code project very much.But I only find some web site about it but I can't find any project.
Hello everybody
|
| Sign In·View Thread·PermaLink | 2.00/5 (3 votes) |
|
|
|
 |
|
 |
i need hard , new ,amazing gradution project about 4 persons i study MIS in lebanon my E-mail lovexx221@hotmail.com
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
When resizing columns, we needed the right side of the grid to remain anchored in place. The current state of this control doesn't allow that, so here's what I did to make it go:
In the GridCtrl.cpp file, and in OnLButtonUp function, look for the else if code that handles the m_MouseMode == MOUSE_SIZING_COL, and replace that enitre section with the following (it's easier to do that to direct you to the precise spot in the code):
else if (m_MouseMode == MOUSE_SIZING_COL) { CRect rect; GetClientRect(rect); CRect invertedRect(m_LastMousePoint.x, rect.top, m_LastMousePoint.x + 2, rect.bottom); CDC* pDC = GetDC(); if (pDC) { pDC->InvertRect(&invertedRect); ReleaseDC(pDC); } if (m_LeftClickDownPoint != point && (point.x != 0 || point.y != 0)) // 0 pt fix by email1@bierling.net { CPoint start; if (!GetCellOrigin(m_LeftClickDownCell, &start)) { return; }
int nCol = m_LeftClickDownCell.col; int nColumnWidth = max(point.x - start.x, m_bAllowColHide? 0 : 1); // check our new boolean to see if we want the original behavior or the new behavior if (!m_bAllowFrozenColumnResize) { SetColumnWidth(nCol, nColumnWidth); } else { // This code allows you to resize a column in either direction. // The column side you're resizing towards remains frozen in // place. This allows you to anchor the edge of the grid and // resize the columns within it. jms - 02/07/2005 if (nCol < GetColumnCount() - 1) { int nThisColWidth = GetColumnWidth(nCol); int nNextColWidth = GetColumnWidth(nCol + 1); int nWidthDiff = nThisColWidth - nColumnWidth;
int nNewWidth = 0; // grid wackiness - depending on if the nCol is shrinking or growing, we have to set // column widths for the two affected columns in a different order if (nWidthDiff > 0) { nNewWidth = nNextColWidth + nWidthDiff; SetColumnWidth(nCol, nColumnWidth); SetColumnWidth(nCol + 1, nNewWidth); } else { nNewWidth = nNextColWidth - (nColumnWidth - nThisColWidth); SetColumnWidth(nCol + 1, nNewWidth); SetColumnWidth(nCol, nColumnWidth); } } }
ResetScrollBars(); Invalidate(); } }
Next, add the following to the header file
protected: BOOL m_bAllowFrozenColumnResize;
public: void SetFrozenColumnResize(BOOL bVal) { m_bAllowFrozenColumnResize = bVal; };
During the initialization of your grid (after you specify columns), add a call to SetFrozenColumnResize and pass TRUE as the parameter to se this new column resizing work.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
We use this grid control in one of our apps, and I had cause to add code to blink the cells (background and foreground). If anyone is interested, I can post the code.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Unless the customer asks for it...
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
John - hope all is well with you (and whatever Grid-Iron team you were following won). I know its a long while ago you posted this offer, but I'm going to have a need to flash cells in a grid to indicate failures to a user in an upcoming project
If you could post the code, it would be great
cheers & thanks Garth
ps .. saw some clips from here in Aus - some of the adverts cracked me up - pity the weather was cr*p
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I need to get the WM_MOUSEMOVE message reflected back to the parent window.
Can someone suuggest the best way to accomplish this?
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Never mind...
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Trying to add a combo box into a grid control in my program. The items in the combo box are displayed quite fine however when I select an item and the cell with the combo box then loses focus the text disappears.
I suspect the problem is somewhere in the CInPlaceList class. In CInPlaceList::EndEdit if I remove the call
PostMessage(WM_CLOSE, 0, 0); at the end of the method the text doesn't disappear but the instance of CInPlaceList remains on screen so you can get some bizarre drawing effects. Not what I was looking for but it works. It seems as though the call to PostMessage is erasing the contents of the cell.
I'm pretty sure I'm just not making use of the CGridCellCombo class properly as I'm still trying to figure out all the ins and outs of the grid control.
Rob Segal 3DNA Corporation www.3dna.net
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
void CGridCell::Reset() { CGridCellBase::Reset();
m_strText.Empty(); ********************************************* m_lParam = NULL; // BUG FIX J. Bloggs 20/10/03 ********************************************* m_nImage = -1; m_pGrid = NULL; m_bEditing = FALSE; m_pEditWnd = NULL;
m_nFormat = (DWORD)-1; m_crBkClr = CLR_DEFAULT; m_crFgClr = CLR_DEFAULT; m_nMargin = (UINT)-1;
delete m_plfFont; m_plfFont = NULL; }
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi there,
In an effort to internationalise my application I have chosen to create resource only dlls to support languages other than English. When I load my resources from say the French dll most of them work fine except that my dialogs with the MFCGridCtrl in them do not display at all. Does anyone know why this is happening and is there a solution.
cheers Dave
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
I use following code,but seems something is wrong:
m_Grid.SetCellType(nRow,nCol,RUNTIME_CLASS(CGridBtnCell)); CGridBtnCell* pGridBtn=(CGridBtnCell*)m_Grid.GetCell(1,1); pGridBtn->SetBtnDataBase(&m_BtnDataBase); pGridBtn->SetGrid(&m_Grid);
pGridBtn->SetupBtns(0,DFC_BUTTON,DFCS_BUTTONCHECK, CGridBtnCellBase::CTL_ALIGN_RIGHT,16,FALSE,NULL);
pGridBtn->Reset();//Clear is OK.
pGridBtn->SetupBtns(0,DFC_BUTTON,DFCS_BUTTONCHECK, CGridBtnCellBase::CTL_ALIGN_RIGHT,16,FALSE,NULL);//But when added button to that cell again,the check box become unclickable and app crashs.
How to fix this?Thanks in advance!
Say hello to my little friend.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hello sir Can I make use of this projects? How can get thi grid control project? How cani download???Help me
Padma
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Start with the following link which will provide links to the code: http://www.codeproject.com/miscctrl/gridctrl.asp
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |