Ksp reference Manual


See Also stop_wait() wait() Time-Related Commands



Download 0,99 Mb.
Pdf ko'rish
bet69/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   65   66   67   68   69   70   71   72   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

See Also
stop_wait()
wait()
Time-Related Commands
81
KSP Reference Manual


12. USER INTERFACE COMMANDS
12.1. add_menu_item()
add_menu_item(,,)
Create a menu entry

The variable of the UI menu

The text of the menu entry

The value of the menu entry
Remarks
• You can create menu entries only in the init callback but you can change their text and value
afterwards by using 
set_menu_item_str()
and 
set_menu_item_value()
. You can add
as many menu entries as you want and then show or hide them dynamically by using
set_menu_item_visibility()
.
• Using the 
$CONTROL_PAR_VALUE
constant in the 
get_control_par()
command will return
the menu index and not the value. If you want to get the menu value, use the
get_menu_item_value()
command.
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
See Also
$CONTROL_PAR_SELECTED_ITEM_IDX
$CONTROL_PAR_NUM_ITEMS
get_menu_item_str()
get_menu_item_value()
get_menu_item_visibility()
set_menu_item_str()
set_menu_item_visibility()
ui_menu

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   65   66   67   68   69   70   71   72   ...   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