Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Scroll-problem with grid of Chris Maunder

Scroll-problem with grid of Chris Maunder

Scheduled Pinned Locked Moved C / C++ / MFC
csshelpquestionlearning
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ensger
    wrote on last edited by
    #1

    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

    R M 2 Replies Last reply
    0
    • E ensger

      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

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      ensger wrote:

      Chris Maunder

      Wait.. I think I've heard this name..


      [Noobs Treatment Area]
      Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா

      E 1 Reply Last reply
      0
      • E ensger

        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

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        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")

        E 1 Reply Last reply
        0
        • M Mark Salsbery

          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")

          E Offline
          E Offline
          ensger
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            ensger wrote:

            Chris Maunder

            Wait.. I think I've heard this name..


            [Noobs Treatment Area]
            Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா

            E Offline
            E Offline
            ensger
            wrote on last edited by
            #5

            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:

            1 Reply Last reply
            0
            • E ensger

              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

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              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")

              E 1 Reply Last reply
              0
              • M Mark Salsbery

                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")

                E Offline
                E Offline
                ensger
                wrote on last edited by
                #7

                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

                M 1 Reply Last reply
                0
                • E ensger

                  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

                  M Offline
                  M Offline
                  Mark Salsbery
                  wrote on last edited by
                  #8

                  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")

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups