Scroll-problem with grid of Chris Maunder
-
Hallo all, I supose that many of you will use the grid of Chris Maunder - it seems to be almost perfect. But I have one problem (more of course:-O, 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
-
Hallo all, I supose that many of you will use the grid of Chris Maunder - it seems to be almost perfect. But I have one problem (more of course:-O, 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
ensger wrote:
Chris Maunder
Wait.. I think I've heard this name..
[Noobs Treatment Area]
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா -
Hallo all, I supose that many of you will use the grid of Chris Maunder - it seems to be almost perfect. But I have one problem (more of course:-O, 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
What if you use SetFocus to set the keyboard focus to the grid control?
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
-
What if you use SetFocus to set the keyboard focus to the grid control?
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
I tried m_pGridCtrl->SetFocusCell(2,4); for example, but it doesn't change the situation. It focuses this cell, but the keybord doesn't work anmore:sigh: (it works's, if I click in the grid with the maouse) Good idea, but unfortunatly:(( This problem is for me like 'Only a step for the programmer but a great step for all users' Do you know a way to simulate a mouse-click prgrammaticaly?? Even if this destroys the existng selections - I could live with this becouse of the increadable advantages of this grid!! Thank's, Gerard
-
ensger wrote:
Chris Maunder
Wait.. I think I've heard this name..
[Noobs Treatment Area]
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மாI hope you didn't hear 'Dead or alive' at the same moment;P I never heard his name, I only read the name here and it always makes me sure to have something with great quality;) But my problem with scrolling is still my problem:(( Hope, I can solve it;) Or you:rolleyes:
-
I tried m_pGridCtrl->SetFocusCell(2,4); for example, but it doesn't change the situation. It focuses this cell, but the keybord doesn't work anmore:sigh: (it works's, if I click in the grid with the maouse) Good idea, but unfortunatly:(( This problem is for me like 'Only a step for the programmer but a great step for all users' Do you know a way to simulate a mouse-click prgrammaticaly?? Even if this destroys the existng selections - I could live with this becouse of the increadable advantages of this grid!! Thank's, Gerard
I don' know how the grid is implemented, but somewhere there's a window that you should be able to direct the focus to. The system does it when you click on it so it should be possible programatically. What about m_pGridCtrl->SetFocus() or viewwindow->SetFocus(), something like that?
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
-
I don' know how the grid is implemented, but somewhere there's a window that you should be able to direct the focus to. The system does it when you click on it so it should be possible programatically. What about m_pGridCtrl->SetFocus() or viewwindow->SetFocus(), something like that?
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
-
Tried pGridCtrl->SetFocus() but it doesn't work. (compilition ok, but no difference) Trid viewwindow->SetFocus() it didn't work. (compilition-error) Many thank's for suggestions, Gerard
hmmm bummer. Hopefully Chris himself will see this post and respond :)
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")