Sub BtnAdd_Click
Dim AddResonForHearing As CustomDialog
Dim EditOrder As EditText
Dim EditDate As EditText
Dim EditReason As EditText
Dim ret As Int
Dim PnlDialogHearing As Panel
Dim BmpDialogAddPersn As Bitmap
EditOrder.Initialize("EditOrder")
EditDate.Initialize("EditDate")
EditReason.Initialize("EditDate")
EditOrder.InputType=EditOrder.INPUT_TYPE_TEXT
EditDate.InputType=EditDate.INPUT_TYPE_NONE
EditReason.InputType=EditReason.INPUT_TYPE_NONE
EditOrder.Hint="Order"
EditDate.Hint="Date"
EditReason.Hint="Reason"
PnlDialogHearing.AddView(EditOrder,20,0,120,28)
PnlDialogHearing.AddView(EditDate,20,40,120,28)
PnlDialogHearing.AddView(EditReason,20,80,120,28)
BmpDialogAddPersn.Initialize(File.DirAssets,"AddNewPerson.png")
AddResonForHearing.AddView(PnlDialogHearing,10,0, 77%x, 60%y )
ret = AddResonForHearing.Show("Add Reason", "Save", "Cancel","",BmpDialogAddPersn)
End Sub