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. hot to set the step value in spin

hot to set the step value in spin

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
6 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.
  • M Offline
    M Offline
    Mughi
    wrote on last edited by
    #1

    I had set the min value and max value to spin by m_spin.SetRange(250,500); But then, how to set the step value to spin. It should increment like 250, 300, 350, 400, 450, 500 Can anyone help me out, please. It is so urgent. I thank in advance. Mughilan

    P D 2 Replies Last reply
    0
    • M Mughi

      I had set the min value and max value to spin by m_spin.SetRange(250,500); But then, how to set the step value to spin. It should increment like 250, 300, 350, 400, 450, 500 Can anyone help me out, please. It is so urgent. I thank in advance. Mughilan

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      Could not find anything that will do that what you are asking for by default. You have i guess customise it.


      MSN Messenger. prakashnadar@msn.com

      1 Reply Last reply
      0
      • M Mughi

        I had set the min value and max value to spin by m_spin.SetRange(250,500); But then, how to set the step value to spin. It should increment like 250, 300, 350, 400, 450, 500 Can anyone help me out, please. It is so urgent. I thank in advance. Mughilan

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

        Will SetStep(50) not do what you require?


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        R 1 Reply Last reply
        0
        • D David Crow

          Will SetStep(50) not do what you require?


          "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #4

          CSpinButtonCtrl doesn't have a SetStep() method that I can find. I'd try providing a handler for the NM_RELEASEDCAPTURE message that calls GetPos(), adds or subtracts 50, then calls SetPos(). Of course, someone more knowledgable might have a better solution.:-O Will Build Nuclear Missile For Food - No Target Too Small

          D 1 Reply Last reply
          0
          • R Roger Wright

            CSpinButtonCtrl doesn't have a SetStep() method that I can find. I'd try providing a handler for the NM_RELEASEDCAPTURE message that calls GetPos(), adds or subtracts 50, then calls SetPos(). Of course, someone more knowledgable might have a better solution.:-O Will Build Nuclear Missile For Food - No Target Too Small

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

            Indeed. I missed the reference to CSpinButtonCtrl. He'll need to use SetAccel() instead.


            "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

            R 1 Reply Last reply
            0
            • D David Crow

              Indeed. I missed the reference to CSpinButtonCtrl. He'll need to use SetAccel() instead.


              "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

              R Offline
              R Offline
              Roger Wright
              wrote on last edited by
              #6

              DavidCrow wrote: use SetAccel() I wondered about that... I haven't used it, but is it possible to set the first element of the UDACCEL structure to [0,50]? If it doesn't choke on the 0 value for elapsed time I would expect it to do the job adequately, but the documentation doesn't elaborate on it much. Will Build Nuclear Missile For Food - No Target Too Small

              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