Changing the slider into buttonMode

萝らか妹 提交于 2019-12-22 18:28:47

问题


I am trying to change the slider into buttonMode by using

my_slider.buttonMode = true;

but it doesn't shows handsymbol.Is there any other way to change the slider into buttonMode?.

Thanks in advance.


回答1:


i had the similar issue in one of my project. try this it will definitely work.

// cmp_slider is component instance

var mc = cmp_slider.getChildAt(1); // it is a drag button.
mc.buttonMode = true;
mc.useHandCursor = true; 



回答2:


my_slider.mouseChildren = false;
my_slider.buttonMode = true;



回答3:


my_slider.mouseChildren=false is sufficient to display a hand cursor over a component.

EDIT:

my_slider.useHandCursor=true is also required



来源:https://stackoverflow.com/questions/7291765/changing-the-slider-into-buttonmode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!