ManagedForm.ShowChooseFromMenu
Syntax:
Parameters:
<NotifyDescriptionOnCompletion> (required)
It contains description of the procedure that will be called after the date entry window is closed with the following parameters:
- <SelectedElement> - the selected date value or Undefined if the user has not entered anything,
- <AdditionalParameters> - the value specified when the object is created NotifyDescription.
<AdditionalParameters> - the value specified when the object is created NotifyDescription.
<ListOfValues> (required)
Value list containing values from which selection is made.
<FormElement> (optional)
Form element near which the dropdown list will be opened. For some elements, the dropdown list will be shown near the active area. If not specified, the active form element will be selected.
Note: Do not specify command bar or submenu buttons as values of this parameter.
Description:
Availability:
Note:
Example:
List = New ValueList; List.Add("Delivery",,True); List.Add("Unloading",,False); List.Add("Picture",,,PictureLib.Picture1); Notify = New NotifyDescription("AfterChoiceFromMenu", , Parameters); ShowChooseFromMenu(Notify, List, Items.Button1); //... &AtClient Procedure AfterChoiceFromMenu(ChooseItem, Parameters) Export // ... EndProcedure; |