 |
|
 |
Hi all,
Not sure if someone already mentioned this (or if it's fixed in a more recent version of the code than the one I have), but there's a bug in the painting of vertical column lines when the first non-fixed column is hidden (width 0).
In CGridCtrl::OnDraw(CDC* pDC), in the section that draws the lines, look for:
if (m_nGridLines == GVL_BOTH || m_nGridLines == GVL_VERT)
{
.
.
.
if(col == (m_nFixedCols + m_nFreezedCols))
Change this last line to:
if(col >= (m_nFixedCols + m_nFreezedCols) && col < minVisibleCol)
- Pfft. Coddled kids. In my day, we used to telnet to port 80, then render the page with pencil and paper-- and that's the way we liked it!
- Pshaw! Youngster. Your UID barely fits inside 16 bits. In _my_ day we had to whistle the 1's and 0's through an acoustic coupler!
Tools that support "all of UTF-8 as long as it starts with ASCII" and tools that cannot handle these three [BOM] bytes at all are not really supporting UTF-8.
- Michael Kaplan
|
|
|
|
 |
|
 |
Sorry, forgot to mention that the error happens when you scroll to the right. That's when the painting gets screwed up.
- Pfft. Coddled kids. In my day, we used to telnet to port 80, then render the page with pencil and paper-- and that's the way we liked it!
- Pshaw! Youngster. Your UID barely fits inside 16 bits. In _my_ day we had to whistle the 1's and 0's through an acoustic coupler!
Tools that support "all of UTF-8 as long as it starts with ASCII" and tools that cannot handle these three [BOM] bytes at all are not really supporting UTF-8.
- Michael Kaplan
|
|
|
|
 |
|
 |
I have grid ctrl. Is any api for full row selection (list listview style )
|
|
|
|
 |
|
 |
I may be blind.. looking at code for too long. But, how do I limit data entry to just numbers (no alpha, etc)? And how about just limiting to a dollar value? I.e. 10.45?
|
|
|
|
 |
|
 |
Hello,
I have some problem with DLL based MFCGridCtrl.
There are two projects in my solution. (visual studio 2008)
one is Dialog based EXE, other is MFC Extend DLL .
in DLL project, I added a dialog and put a custom control to make Grid.
When I call this dll dialog from EXE project,there will be some error.
I have found many people have same problem in this case.
does anynone have some sample code ?
thanks.
|
|
|
|
 |
|
 |
Hello.
First I insert a Grid Control into my form view, but i need to response the OnEndEdit messages in form view class. But i doesn't work. So any suggestions?
|
|
|
|
 |
|
 |
i want to know is there any vb.net version for this program?
fira
|
|
|
|
 |
|
 |
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.
|
|
|
|
 |
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
i need hard , new ,amazing gradution project
about 4 persons
i study MIS in lebanon
my E-mail lovexx221@hotmail.com
|
|
|
|
 |
|
|
 |
|
 |
i need hard , new ,amazing gradution project
about 4 persons
i study MIS in lebanon
|
|
|
|
 |
|
 |
i need hard , new ,amazing gradution project
about 4 persons
|
|
|
|
 |
|
 |
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)) {
CPoint start;
if (!GetCellOrigin(m_LeftClickDownCell, &start))
{
return;
}
int nCol = m_LeftClickDownCell.col;
int nColumnWidth = max(point.x - start.x, m_bAllowColHide? 0 : 1);
if (!m_bAllowFrozenColumnResize)
{
SetColumnWidth(nCol, nColumnWidth);
}
else
{
if (nCol < GetColumnCount() - 1)
{
int nThisColWidth = GetColumnWidth(nCol);
int nNextColWidth = GetColumnWidth(nCol + 1);
int nWidthDiff = nThisColWidth - nColumnWidth;
int nNewWidth = 0;
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
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
Heaven Forbit! blinking text is a quick way to get your product tossed into the trash can.
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
|
 |
|
 |
Thanks John - missed the article, got it now
cheers, Garth
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
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
|
|
|
|
 |