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. Set the focus to already opened View

Set the focus to already opened View

Scheduled Pinned Locked Moved C / C++ / MFC
3 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.
  • J Offline
    J Offline
    jagannathan thiruvengadathan
    wrote on last edited by
    #1

    Hello, In my project, if i click a particular row in the list control, it will open a view. Like that if i click different row it will open different view. But when i try to open the view using click event, that was opened already, the focus is not set to the particular view. It is opening another window using "Openform". Is there any way to set the focus to already opened view. Regards Jagannathan

    J D 2 Replies Last reply
    0
    • J jagannathan thiruvengadathan

      Hello, In my project, if i click a particular row in the list control, it will open a view. Like that if i click different row it will open different view. But when i try to open the view using click event, that was opened already, the focus is not set to the particular view. It is opening another window using "Openform". Is there any way to set the focus to already opened view. Regards Jagannathan

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      jagannathan thiruvengadathan wrote:

      In my project, if i click a particular row in the list control, it will open a view.

      If by that you really mean single-click, meaning select, it sounds like a great way to piss-off keyboard based users that are using the arrow keys to move to an item, ot typing part of the label to accelerate to one...    Anyway, I am not familar with Openform, as it is not a function or method that I know about.  Sounds like you need to associate the view with a particular item (like via the item's data-item value, and maintain it correctly when the corresponding view is closed), and then use that data item to focus/activate the appropriate already-created view.    Peace!

      -=- James
      Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
      Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
      See DeleteFXPFiles

      1 Reply Last reply
      0
      • J jagannathan thiruvengadathan

        Hello, In my project, if i click a particular row in the list control, it will open a view. Like that if i click different row it will open different view. But when i try to open the view using click event, that was opened already, the focus is not set to the particular view. It is opening another window using "Openform". Is there any way to set the focus to already opened view. Regards Jagannathan

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Before opening a new view, can't you just search through the list of already-open views?


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        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