Ksp reference Manual



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

User Interface Controls
29
KSP Reference Manual


4.6. ui_menu
declare ui_menu $
Create a user interface drop-down menu
Examples
on init
declare ui_menu $menu
add_menu_item ($menu, "First Entry",0)
add_menu_item ($menu, "Second Entry",1)
add_menu_item ($menu, "Third Entry",2)
end on
A simple menu
on init
declare $count
declare ui_menu $menu
$count := 1
while ($count < 17)
add_menu_item ($menu, "Entry Nr: " & $count,$count)
inc ($count)
end while
end on
Quickly create a menu with many entries
See Also
add_menu_item()
get_menu_item_str()
get_menu_item_value()
get_menu_item_visibility()
set_menu_item_str()
set_menu_item_value()
set_menu_item_visibility()
4.7. ui_panel
declare ui_panel $
Create a user interface panel
User Interface Controls
30
KSP Reference Manual


Remarks
A panel is a control that can contain one or multiple controls. Unlike the rest of the controls, panels
don’t have size. They are very useful for grouping controls that are meant to be handled together.
Then one can simultaneously modify the Show, Position or zLayer property of all the controls con-
tained in that panel. The position of a contained control is relative to the panel’s position. This
means that the control’s (0,0) position is the current (x,y) position of the panel.
Panels can be nested, so they can contain other panels. If panelA is contained in panelB, then
panelA will appear in front of panelB. This is because children panels have a higher zLayer value
than their parent panels. One could use this logic to easily create hierarchies in a performance
view.
Examples
on init
declare ui_panel $mixer
declare ui_knob $volume(0,300,1)
set_control_par(get_ui_id($volume),$CONTROL_PAR_PARENT_PANEL,get_ui_id($mixer))
end on
Adds the volume knob in the mixer panel

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   22   23   24   25   26   27   28   29   ...   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