Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Slider Width Insider Slidebar

Subject: Slider Width Insider Slidebar

From: Stefan

Date: 25 Aug, 2009 13:35:28

Message: 1 of 2

Hi all,

Does anyone know how to modify the slider's width in a slider object?

As an example, a value of 1 would cause the slider to fill the slide
bar while a value of 0.25 would fill 25% of the slide bar.

I poked around in the documentation and the newsgroup and wasn't able
to find a solution.

Thanks!

Subject: Slider Width Insider Slidebar

From: Stefan

Date: 25 Aug, 2009 14:50:43

Message: 2 of 2

On Aug 25, 9:35 am, Stefan <stefan.louis.no...@gmail.com> wrote:
> Hi all,
>
> Does anyone know how to modify the slider's width in a slider object?
>
> As an example, a value of 1 would cause the slider to fill the slide
> bar while a value of 0.25 would fill 25% of the slide bar.
>
> I poked around in the documentation and the newsgroup and wasn't able
> to find a solution.
>
> Thanks!

Ah, I figured it out. The 'SliderStep' property of the slider is what
determines the width of the slider rectangle inside the slider
object. However, you have to convert it via:1/myValue-1 where
'myValue' is the zoom level.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us