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. The Lounge
  3. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved The Lounge
18 Posts 6 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.
  • S Shog9 0

    ensger wrote:

    Your example-program doesn't show how to set the focus to the grid

    Is it... different from the method used to set focus to every other window or control? :~ BTW - each article has a forum associated with it. That's the place for comments like this.

    ----

    ...the wind blows over it and it is gone, and its place remembers it no more...

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

    Set focus in this case is dificult for me, as i'm not a programmer but a commercial who's anly programming a few hours a week. And I hope it's obvious that I am thankful for Chris work and this message was only a question because I know, that others have the same problem. Hope, I didn't realy disturb anybody with this, Gerhard

    S 1 Reply Last reply
    0
    • G Garth Watkins

      It took you a week to solve the problem, and then you dumped it.

      Cheers Garth Some days it's not even worth chewing through the restraints

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

      to dump sthg - sorry, I don't understand:rolleyes: Get no sinful translation:~

      G 1 Reply Last reply
      0
      • E ensger

        Set focus in this case is dificult for me, as i'm not a programmer but a commercial who's anly programming a few hours a week. And I hope it's obvious that I am thankful for Chris work and this message was only a question because I know, that others have the same problem. Hope, I didn't realy disturb anybody with this, Gerhard

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #6

        ensger wrote:

        Set focus in this case is dificult for me, as i'm not a programmer but a commercial who's anly programming a few hours a week.

        Right, i'm just saying - ::SetFocus() works for any window, and any control (with the exception of odd ducks like windowless controls). You learn it for a button, you use it for a list / grid / whatever. So the post struck me as odd - like driving from Minnesota into Iowa, and seeing a roadsign describing the process for breathing Iowa air. Eh, ignore me, i've been mixing cold medicine. Glad you're having fun. ;)

        ----

        ...the wind blows over it and it is gone, and its place remembers it no more...

        E C 2 Replies Last reply
        0
        • S Shog9 0

          ensger wrote:

          Set focus in this case is dificult for me, as i'm not a programmer but a commercial who's anly programming a few hours a week.

          Right, i'm just saying - ::SetFocus() works for any window, and any control (with the exception of odd ducks like windowless controls). You learn it for a button, you use it for a list / grid / whatever. So the post struck me as odd - like driving from Minnesota into Iowa, and seeing a roadsign describing the process for breathing Iowa air. Eh, ignore me, i've been mixing cold medicine. Glad you're having fun. ;)

          ----

          ...the wind blows over it and it is gone, and its place remembers it no more...

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

          :laugh::laugh: m_pGridCtrl->SetFocus() was one of my first attempts - but it didn't work.I needed the help of Jon A. Jonson with something like void CMyView::OnSetFocus(CWnd* pOldWnd) { CView::OnSetFocus(pOldWnd); if (m_pGridCtrl && IsWindow(m_pGridCtrl->m_hWnd)) { m_pGridCtrl->SetFocus(); int x = m_pGridCtrl->GetFixedColumnCount(); int y = m_pGridCtrl->GetFixedRowCount(); m_pGridCtrl->SetFocusCell (y,x); m_pGridCtrl->EnsureVisible(y,x); } } And that's difficult for me:confused:

          S 1 Reply Last reply
          0
          • E ensger

            :laugh::laugh: m_pGridCtrl->SetFocus() was one of my first attempts - but it didn't work.I needed the help of Jon A. Jonson with something like void CMyView::OnSetFocus(CWnd* pOldWnd) { CView::OnSetFocus(pOldWnd); if (m_pGridCtrl && IsWindow(m_pGridCtrl->m_hWnd)) { m_pGridCtrl->SetFocus(); int x = m_pGridCtrl->GetFixedColumnCount(); int y = m_pGridCtrl->GetFixedRowCount(); m_pGridCtrl->SetFocusCell (y,x); m_pGridCtrl->EnsureVisible(y,x); } } And that's difficult for me:confused:

            S Offline
            S Offline
            Shog9 0
            wrote on last edited by
            #8

            Ah, so you're talking about setting focus to a cell within the grid. Figured there was probably more to it. :)

            ----

            ...the wind blows over it and it is gone, and its place remembers it no more...

            E 1 Reply Last reply
            0
            • E ensger

              to dump sthg - sorry, I don't understand:rolleyes: Get no sinful translation:~

              G Offline
              G Offline
              Garth Watkins
              wrote on last edited by
              #9

              It seems like such a waste of time to spend a week trying to solve the problem, and when you finally do, you decide to stop using the control.

              Cheers Garth Some days it's not even worth chewing through the restraints

              E 1 Reply Last reply
              0
              • S Shog9 0

                Ah, so you're talking about setting focus to a cell within the grid. Figured there was probably more to it. :)

                ----

                ...the wind blows over it and it is gone, and its place remembers it no more...

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

                However you say to it - I want to be able to sctoll within the view with the keyboard. And that at first creation, when I change the window, when I made something like 'AfxMessage', after contextmenue and so on. This all is not possible with the example-code of Chris. But it would help beginners like me so much!!!! This was my suggestion to him - of course, I can do now and I could say, that's enough. But I think, this is a real problem for beginners:rose: Hope, I didn't affront anyone with my message (I see the 1.0-voting:-D)

                S 1 Reply Last reply
                0
                • G Garth Watkins

                  It seems like such a waste of time to spend a week trying to solve the problem, and when you finally do, you decide to stop using the control.

                  Cheers Garth Some days it's not even worth chewing through the restraints

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

                  Oh, we missunderstood, now, as this problem is solved, I am happy with this grid and I use it of course!!!

                  1 Reply Last reply
                  0
                  • E ensger

                    However you say to it - I want to be able to sctoll within the view with the keyboard. And that at first creation, when I change the window, when I made something like 'AfxMessage', after contextmenue and so on. This all is not possible with the example-code of Chris. But it would help beginners like me so much!!!! This was my suggestion to him - of course, I can do now and I could say, that's enough. But I think, this is a real problem for beginners:rose: Hope, I didn't affront anyone with my message (I see the 1.0-voting:-D)

                    S Offline
                    S Offline
                    Shog9 0
                    wrote on last edited by
                    #12

                    ensger wrote:

                    Hope, I didn't affront anyone with my message (I see the 1.0-voting:-D)

                    As i said, it's not really the proper forum.

                    ----

                    ...the wind blows over it and it is gone, and its place remembers it no more...

                    E 1 Reply Last reply
                    0
                    • S Shog9 0

                      ensger wrote:

                      Hope, I didn't affront anyone with my message (I see the 1.0-voting:-D)

                      As i said, it's not really the proper forum.

                      ----

                      ...the wind blows over it and it is gone, and its place remembers it no more...

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

                      It's not the first time for me:-> But it's not been so crazy like my last fault, I think:rolleyes: (Messege is not deeleted yet :-D)

                      1 Reply Last reply
                      0
                      • E ensger

                        [Message Deleted]

                        C Offline
                        C Offline
                        Chris Maunder
                        wrote on last edited by
                        #14

                        Best to post in the forum attached to the Grid control. Unfortunately I have zero time to devote to the control these days, but there are many others who can help.

                        cheers, Chris Maunder

                        CodeProject.com : C++ MVP

                        E 1 Reply Last reply
                        0
                        • S Shog9 0

                          ensger wrote:

                          Set focus in this case is dificult for me, as i'm not a programmer but a commercial who's anly programming a few hours a week.

                          Right, i'm just saying - ::SetFocus() works for any window, and any control (with the exception of odd ducks like windowless controls). You learn it for a button, you use it for a list / grid / whatever. So the post struck me as odd - like driving from Minnesota into Iowa, and seeing a roadsign describing the process for breathing Iowa air. Eh, ignore me, i've been mixing cold medicine. Glad you're having fun. ;)

                          ----

                          ...the wind blows over it and it is gone, and its place remembers it no more...

                          C Offline
                          C Offline
                          Colin Angus Mackay
                          wrote on last edited by
                          #15

                          Shog9 wrote:

                          the process for breathing Iowa air

                          They breath air in Iowa... Interesting... I never knew that! :-D


                          Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

                          S 1 Reply Last reply
                          0
                          • C Colin Angus Mackay

                            Shog9 wrote:

                            the process for breathing Iowa air

                            They breath air in Iowa... Interesting... I never knew that! :-D


                            Upcoming events: * Edinburgh: Web Security Conference Day for Windows Developers (12th April) * Glasgow: Introduction to AJAX (2nd May), SQL Server, Mock Objects My website

                            S Offline
                            S Offline
                            Shog9 0
                            wrote on last edited by
                            #16

                            They call it air. We call it "pig flatulence". Minor distinctions... ;P

                            ----

                            ...the wind blows over it and it is gone, and its place remembers it no more...

                            1 Reply Last reply
                            0
                            • C Chris Maunder

                              Best to post in the forum attached to the Grid control. Unfortunately I have zero time to devote to the control these days, but there are many others who can help.

                              cheers, Chris Maunder

                              CodeProject.com : C++ MVP

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

                              Hope, you did not misnderstand. This was no programming-question, as I have a solution to the probelm. But it's been a long way and I asked for others who will have this problem too. Anyway, it's not my problem anymore:rolleyes:

                              1 Reply Last reply
                              0
                              • E ensger

                                [Message Deleted]

                                E Offline
                                E Offline
                                Eytukan
                                wrote on last edited by
                                #18

                                OMG! Worst taboo ever in the lounge :omg:


                                Press: 1500 to 2,200 messages in just 6 days? How's that possible sir? **Dr.Brad :**Well,I just replied to everything Graus did and then argued with Negus for a bit.

                                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