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. Enable Spinbutton ctrl

Enable Spinbutton ctrl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
5 Posts 4 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.
  • R Offline
    R Offline
    rajaratk
    wrote on last edited by
    #1

    Hello, In our application,there is one spinbuttoncntrl is used to increase or decrease the values. When I open the application, i can able to increase and decrease the value depending upon the default values like if default value is 8, i can able to increase from 3 to 5, 4 to 7 . But when I close and open the application the spinbuttoncntrl is disabled. Please assist me how to solve this. Thanks in advance Ratheesh

    R I 2 Replies Last reply
    0
    • R rajaratk

      Hello, In our application,there is one spinbuttoncntrl is used to increase or decrease the values. When I open the application, i can able to increase and decrease the value depending upon the default values like if default value is 8, i can able to increase from 3 to 5, 4 to 7 . But when I close and open the application the spinbuttoncntrl is disabled. Please assist me how to solve this. Thanks in advance Ratheesh

      R Offline
      R Offline
      Russell
      wrote on last edited by
      #2

      I don't know if I understand everything, but your seems a problem related to a bad initialization of that control. Enable it in the VS IDE or programmatically using CWnd::EnableWindow() or CWnd::ShowWindow(SW_SHOW) :confused:


      Russell

      R 1 Reply Last reply
      0
      • R Russell

        I don't know if I understand everything, but your seems a problem related to a bad initialization of that control. Enable it in the VS IDE or programmatically using CWnd::EnableWindow() or CWnd::ShowWindow(SW_SHOW) :confused:


        Russell

        R Offline
        R Offline
        rajaratk
        wrote on last edited by
        #3

        Thanks for your response. In a property sheet contains 5 tabs. First tab is General, this tab has the spinbuttoncntrl. When I open the application at firsttime, it enables and can able to increase and decrease the values. But if i close the application and open it again, it shown as disabled. Note: The 2nd tab also contains 5 spinbuttoncontrols, there i made some changes like increase and decrease also it enabled all the times. How? Please assist me to resolve this issue.

        D 1 Reply Last reply
        0
        • R rajaratk

          Thanks for your response. In a property sheet contains 5 tabs. First tab is General, this tab has the spinbuttoncntrl. When I open the application at firsttime, it enables and can able to increase and decrease the values. But if i close the application and open it again, it shown as disabled. Note: The 2nd tab also contains 5 spinbuttoncontrols, there i made some changes like increase and decrease also it enabled all the times. How? Please assist me to resolve this issue.

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

          rajaratk wrote:

          When I open the application at firsttime, it enables and can able to increase and decrease the values. But if i close the application and open it again, it shown as disabled.

          This makes no sense. Why should one "open" be different than any other "open?" What are you doing when the application is opened? When that tab is activated?


          "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
          • R rajaratk

            Hello, In our application,there is one spinbuttoncntrl is used to increase or decrease the values. When I open the application, i can able to increase and decrease the value depending upon the default values like if default value is 8, i can able to increase from 3 to 5, 4 to 7 . But when I close and open the application the spinbuttoncntrl is disabled. Please assist me how to solve this. Thanks in advance Ratheesh

            I Offline
            I Offline
            Iain Clarke Warrior Programmer
            wrote on last edited by
            #5

            As David says, this makes no sense on its own. Are you confusing Close / Open with Minimise / Maximise? If not, then some action in your code is doing different things. Do you save values? Do a search in your code for the control ID of the spinbutton and see what you do with it. Unless someone (ie, YOU) disables the control, it will be at whatever state it is set to be in the dialog resource. You need to track down where you disable it, and see why that is different in the two scenarios. Iain.

            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