Ksp reference Manual


See Also $CONTROL_PAR_PARENT_PANEL 4.8. ui_slider



Download 0,99 Mb.
Pdf ko'rish
bet27/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   23   24   25   26   27   28   29   30   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

See Also
$CONTROL_PAR_PARENT_PANEL
4.8. ui_slider
declare ui_slider $ (,)
Create a user interface slider

The minimum value of the slider

The maximum value of the slider
Examples
on init
declare ui_slider $test (0,100)
set_control_par(get_ui_id($test),$CONTROL_PAR_DEFAULT_VALUE,50)
end on
Slider with default value
on init
declare ui_slider $test (-100,100)
$test := 0
declare $id
$id := get_ui_id($test)
set_control_par($id,$CONTROL_PAR_MOUSE_BEHAVIOUR,2000)
User Interface Controls
31
KSP Reference Manual


set_control_par($id,$CONTROL_PAR_DEFAULT_VALUE,0)
set_control_par_str($id,$CONTROL_PAR_PICTURE,"K4_SLIDER_BIP_1")
end on
Creating a bipolar slider by loading a different picture background
See Also
ui_knob
set_control_par()
$CONTROL_PAR_MOUSE_BEHAVIOUR
4.9. ui_switch
declare ui_switch $
Create a user interface switch
Remarks
• A switch, i.e. its callback, is triggered when clicking the mouse (mouse-down).
• A switch can be automated.
Examples
on init
declare ui_switch $rec_button
set_text ($rec_button,"Record")
declare $rec_button_id
$rec_button_id:= get_ui_id ($rec_button)
set_control_par ($rec_button_id,$CONTROL_PAR_WIDTH,60)
set_control_par ($rec_button_id,$CONTROL_PAR_HEIGHT,20)
set_control_par ($rec_button_id,$CONTROL_PAR_TEXT_ALIGNMENT,1)
set_control_par ($rec_button_id,$CONTROL_PAR_POS_X,250)
set_control_par ($rec_button_id,$CONTROL_PAR_POS_Y,5)
end on
Switch with various settings utilizing set_control_par()

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   23   24   25   26   27   28   29   30   ...   187




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish