Solved

changing the range of a spin control

Posted on 2000-03-29
6
199 Views
Last Modified: 2013-11-20
Hi!

I have an application where the value of a field changes the range of available values in another field.  From what i've seen, using setrange32 two times doesn't seem to change the previous range of values sent to the spin using the very same function.  Can you tell me if the range can be set and then reset dynamically?

Thanks!
0
Comment
Question by:asavard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:naveenkohli
ID: 2667277
you should not have any problem with changing the range value dynamically by SetRange function. Are you resetting the values in some other function? May be thats what you are running into.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2667301
I am not aware of any limitation here.

Try it in debug mode, and trace all calls to SetRange.

Perhaps you are calling it once with the new and then again with the old values.  Or the values you are actually calling with are not what you think they are.
0
 

Author Comment

by:asavard
ID: 2669374
OK I am an idiot!  Can someone come here and kick my silly ass?  Of course the problem was another function reseting the values.  But worse, the functions were both in the same function.  Well that's what happens when you are bored with some code, you become too lazy to step into it and find a pretty obvious answer...

HO WELL!

OK, who deserves those points?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 2672680
Consider your silly ass kicked .. perhaps you can do the same for me sometime, as I kick my own often enough :-)

I think I desrve the pointer .. I suggested that you had two calls.  

Didn't think you'd be silly enough to do it in the same function ;-)

0
 

Author Comment

by:asavard
ID: 2673097
OK RON

Considering you also explained me some stuff as a comment in another question, i think it at least deserves a couple of pointes heh!

Thanks!
0
 
LVL 23

Expert Comment

by:naveenkohli
ID: 2673379
just to make my point..
i think i made that comment first :-)
the problem solved thats what matters..

Have Fun
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question