Volume Sliders

Volume Slider controls allow user to adjust volume of speakers and microphone.

 

Volume Sliders

 

Inside skin file these controls are created as Custom objects.

They have following properties:

Name

It should be "MicrophoneH" or "MicrophoneV" (depends on orientation: horizontal or vertical) or "SpeakerH" or "SpeakerV".

Some old skins may have name "MicrophoneObject" and "SpeakerObject". These are synonyms for horizontal sliders MicrophoneH and SpeakerH.

BackgroundImage for background (read below)
SliderImage for foreground (read below)
BackColorColor, which should be the same as a color near volume slider element on the main window.

 

Other properties are not important.

Volume Slider Propeties

 

When displaying of the volume sliders, the application uses following drawing algorithm:

1) It paints Background image first.

2) Then it paints Slider image over the background. But only some part of Slider image is painted (depends on the volume level).

For example, lets assume that volume is 75% of a maximum. In this case only 75% of Slider image will be painted over the background. See below image as an illustration.

 

Volume Slider Images

 

The same algorithm is used for vertical orientation of sliders.

 

Comments (0)