Shrinking the movement area of a CKnob handle

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
User avatar
Kyra
Posts: 5
Joined: Mon Feb 24, 2020 3:58 pm

Shrinking the movement area of a CKnob handle

Post by Kyra »

Quick heads up before I start; i'm new to programming in general, so please bear with me if i'm missing something that's right under my nose.

Currently i've got a knob on my vst that looks like this Image
This is fine, but the look i'm aiming for is more like this Image

Is there a way to shrink the area that the handle of the knob rotates around in order to bring it closer to the center of the knob?

Arne Scheffler
Posts: 353
Joined: Mon Jun 20, 2016 7:53 am

Re: Shrinking the movement area of a CKnob handle

Post by Arne Scheffler »

Yes there is, see the value-inset attribute or CKnob::setInsetValue().

Cheers,
Arne

User avatar
Kyra
Posts: 5
Joined: Mon Feb 24, 2020 3:58 pm

Re: Shrinking the movement area of a CKnob handle

Post by Kyra »

ahh thanks

tried that before but just realized i'd put inset-value instead

Post Reply