Dear people out there,

I cant see through the tomatoes on my eyes, so I ask you to help me
overcome my human weakness.
I got the following problem:

I've got 10 sliderbars in defined an array and assigned the controls to
the corresponding ID's.

Here some code, if not enough, I give u more

// the slider bars
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_1, m_sliderBars[0]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_2, m_sliderBars[1]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_3, m_sliderBars[2]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_4, m_sliderBars[3]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_5, m_sliderBars[4]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_6, m_sliderBars[5]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_7, m_sliderBars[6]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_8, m_sliderBars[7]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_9, m_sliderBars[8]);
DDX_Control(pDX, IDC_SLIDER_COLOR_CHOOSER_10, m_sliderBars[9]);


for (i=0; i<10; i++ ) {
m_sliderBars[i].SetRange(0, 5000);
m_sliderBars[i].SetPos(200);
}

The problem is, the first sliderbar sets its range between 0 and 100
and the position to 0, no mather what I do.
This is not what I want it to do.

Is there anything I did not take into account, or do I really have a
problem and should look for a doctor checking my eyes.

I am desperate, since I dont see, why it wont work.

Would anybody show a little mercy and spend a few minutes for me
please?

Thank you in advance.

Re: slider control problem, first control in slider control array could not be set by Alex

Alex
Tue Jun 06 06:08:17 CDT 2006

T0m@t0j03 wrote:
> I've got 10 sliderbars in defined an array and assigned
> the controls to the corresponding ID's.
> [...]
> The problem is, the first sliderbar sets its range
> between 0 and 100 and the position to 0, no mather what I
> do.
> This is not what I want it to do.

It seem that there is some code, which executes after yours.
What do you get if you call m_sliderBars[0].GetRange right
after the loop?



Re: slider control problem, first control in slider control array could not be set by T0m

T0m
Tue Jun 06 10:36:41 CDT 2006

Thank you very much for answering that quickly, but after several
changes in my code, I observed, that it works now, without doing
something with the slicer controls.

Sorry, for posting without thinking enough about my code.

Thanks alot. T0m