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. Edit Control Problem

Edit Control Problem

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelp
3 Posts 2 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.
  • U Offline
    U Offline
    User 11111461
    wrote on last edited by
    #1

    Compiler: Visual Studio Standard Edition 4.0 Language: C/win32 My program uses 10 edit controls three of which are read only and 2 push buttons. I am using the tab-stop style controls. My problem is that when navigating the controls with the mouse the program hangs after clicking each input control about six times. If I navigate the controls with the tab key I don't have this problem at all. This program performs calculations for building an antenna for amateur radio use and includes a graphic of the antenna. EDIT: If I process WM_LBUTTONDOWN in the main window 40-50 times the program hangs. So it happens even if I'm not using the edit boxes. Sorry if I'm not making everything clear. The user enters values and then presses the calc button for one calc and does the same for another calculation. Two sets of edit controls and two push buttons.

    D 1 Reply Last reply
    0
    • U User 11111461

      Compiler: Visual Studio Standard Edition 4.0 Language: C/win32 My program uses 10 edit controls three of which are read only and 2 push buttons. I am using the tab-stop style controls. My problem is that when navigating the controls with the mouse the program hangs after clicking each input control about six times. If I navigate the controls with the tab key I don't have this problem at all. This program performs calculations for building an antenna for amateur radio use and includes a graphic of the antenna. EDIT: If I process WM_LBUTTONDOWN in the main window 40-50 times the program hangs. So it happens even if I'm not using the edit boxes. Sorry if I'm not making everything clear. The user enters values and then presses the calc button for one calc and does the same for another calculation. Two sets of edit controls and two push buttons.

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

      Member 11145709 wrote:

      My problem is that when navigating the controls
      with the mouse the program hangs after clicking each input
      control about six times

      Are you clicking it 6 times in succession, or clicking it once to gain focus then clicking some other control then some other control etc round-robin style until one of them has been clicked 6 times?

      Member 11145709 wrote:

      This program performs calculations for building an antenna for amateur radio use and includes a graphic of the antenna.

      Does that have anything at all to do with the problem? If these calculations and image drawings are not taking place until a "go" button is clicked, then you can omit this part from consideration. Otherwise, if you are performing calculations and drawing images in response to controls receiving/losing focus or changing content, therein may be where you need to look.

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      U 1 Reply Last reply
      0
      • D David Crow

        Member 11145709 wrote:

        My problem is that when navigating the controls
        with the mouse the program hangs after clicking each input
        control about six times

        Are you clicking it 6 times in succession, or clicking it once to gain focus then clicking some other control then some other control etc round-robin style until one of them has been clicked 6 times?

        Member 11145709 wrote:

        This program performs calculations for building an antenna for amateur radio use and includes a graphic of the antenna.

        Does that have anything at all to do with the problem? If these calculations and image drawings are not taking place until a "go" button is clicked, then you can omit this part from consideration. Otherwise, if you are performing calculations and drawing images in response to controls receiving/losing focus or changing content, therein may be where you need to look.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        U Offline
        U Offline
        User 11111461
        wrote on last edited by
        #3

        The graphic is simply used as a diagram of the antenna that pictures the dimensions needed for the equations. I do mean that values are plugged into each field six times or so before the program hangs using the mouse to select each field. So, if the user does a lot of playing around with different dimensions and frequencies during the same session and uses the mouse to change from one field to another the program might hang.

        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