カスタムサムを適用しようとしているスライダーがたくさんあります。寸法は12x20で、以下のコードでシンセのルックアンドフィールを使用して適用しています。これにより、水平スライダーの親指が正しく表示されますが、垂直スライダーを作成すると、親指の端が歪んでしまいます。これを行うためのより良い方法はありますか?また、サムプレスされたコードは何もしません。その理由は、sliderThumbsに「プレスされた状態」がないためだと思いますか?スライダーを押したときにL&Fを変更する方法はありますか?よろしくお願いします!!!
乾杯、ルーカス
<!-- Make and Bind a SliderThumb style -->
<style id="sliderStyle">
<state>
<property key="Slider.paintValue" type="boolean" value="false"/>
<property key="Slider.thumbWidth" type="integer" value="12"/>
<property key="Slider.thumbHeight" type="integer" value="21"/>
</state>
</style>
<bind style="sliderStyle" type="region" key="slider" />
<style id="SliderTrackStyle">
<opaque value="FALSE"/>
</style>
<bind style="SliderTrackStyle" type="region" key="sliderTrack" />
<style id="sliderThumbStyle">
<state>
<imagePainter method="sliderThumbBackground" path="Images/SliderThumb.png"
sourceInsets="0 0 0 0"/>
</state>
<state value="PRESSED">
<imagePainter method="sliderThumbBackground" path="Images/SliderThumbPressed.png"
sourceInsets="0 0 0 0"/>
</state>
</style>
<bind style="sliderThumbStyle" type="region" key="sliderThumb" />