# Create Dialog Item In Panel
Grammar — Create a type within the Dialog Item dialogItemPanel
Flags —Native
|Action
Creates a dialog item of the specified type within the specified dialog item panel. Flash dialog items will only work on Blizzard maps.
# Arguments
int
[ control ] — Dialog Item Panelint
[ preset::ControlType ] — Type
Returns — int
[ control ]
native int DialogControlCreateInPanel(int panel, int type);
# Related
Category: Dialog / Dialog Items
- [F] —
int
[ control ] — Create Dialog Item — ( DialogControlCreate ) - [F] —
int
[ control ] — Create Dialog Item In Panel — ( DialogControlCreateInPanel ) - [F] —
int
[ control ] — Create Dialog Item From Template — ( DialogControlCreateFromTemplate ) - [F] —
int
[ control ] — Create Dialog Item In Panel From Template — ( DialogControlCreateInPanelFromTemplate ) - [F] —
int
[ control ] — Hookup Dialog Item — ( DialogControlHookup ) - [F] —
int
[ control ] — Hookup Standard Dialog Item — ( DialogControlHookupStandard ) - [F] —
int
[ control ] — Hookup Unit Status Dialog Item — ( DialogControlHookupUnitStatus ) - [F] —
void
— Show/Hide Dialog Item — ( DialogControlSetVisible ) - [F] —
void
— Enable/Disable Dialog Item — ( DialogControlSetEnabled ) - [F] —
void
— Set Dialog Item Text — ( libNtve_gf_SetDialogItemText ) - [F] —
void
— Set Dialog Item Observed Type — ( DialogControlSetObservedType ) - [F] —
int
[ control ] — Last Created Dialog Item — ( DialogControlLastCreated ) - [F] —
bool
— Dialog Item Is Visible — ( DialogControlIsVisible ) - [F] —
bool
— Dialog Item Is Enabled — ( DialogControlIsEnabled ) - [F] —
text
— Dialog Item Text — ( libNtve_gf_DialogItemText ) - [F] —
void
— Dialog Item Is Used — ( TriggerAddEventDialogControl ) - [F] —
int
[ control ] — Used Dialog Item — ( EventDialogControl ) - [F] —
int
[ preset::ControlEventType ] — Dialog Item Event Type — ( EventDialogControlEventType ) - [F] —
int
[ preset::MouseButton ] — Dialog Item Mouse Button — ( EventDialogControlMouseButton )
# Examples
# campaigns/void.sc2campaign
// L722
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeImage)
// L726
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeLabel)
// L722
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeImage)
// L726
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeLabel)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L6410
DialogControlCreateInPanel(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeButton)
// L6418
DialogControlCreateInPanel(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox)
# campaigns/voidstory.sc2campaign
// L10132
DialogControlCreateInPanel(DialogControlLastCreated(), c_triggerControlTypeTooltip)
# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod
// L4440
DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel)
// L4446
DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel)
# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlstarcraft.stormmod
// L375
DialogControlCreateInPanel(libPESC_gv_pVEBrawlTopBar.lv_mainPanel, c_triggerControlTypeLabel)
# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod
// L2075
DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel)
# mods/heroesbrawlmods/brawlmapmods/coop/pvestarcraft.stormmod
// L375
DialogControlCreateInPanel(libPESC_gv_pVEBrawlTopBar.lv_mainPanel, c_triggerControlTypeLabel)
# mods/missionpacks/novacampaign.sc2mod
// L5348
DialogControlCreateInPanel(libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeButton)
// L5356
DialogControlCreateInPanel(libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox)