Dear people out there,

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

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

Here some code, if not enough, I'll give you 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 Jim

Jim
Mon Jun 05 23:08:20 CDT 2006


<arpad@fodor-it.de> wrote in message
news:1149552671.695111.248750@c74g2000cwc.googlegroups.com...
> Dear people out there,
>
> I cant see through the tomatoes on my eyes, so I ask you to help me
> overcome my fucked up human weakness.
> I got the following problem:
>
> I've got 10 sliderbars in an array and assigned the controls to the
> corresponding ID's.
>
> Here some code, if not enough, I'll give you 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]);

Look at the definitions of IDC_SLIDER_COLOR_CHOOSER_x and make sure they are
all unique.

>
>
> 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.
>