Dialog.Title = "Add type"
Dialog.ButtonsFont = xui.CreateDefaultFont(14)
Dim D4 As B4xDialog4Button
D4.Initialize(Dialog)
Wait For (D4.Show("Select","NewBtn","Positive","Negative","Cancel")) Complete (Resp As Int)
Select Resp
Case D4.DialogResponse_NewButton
Log("NewButton")
Case D4.DialogResponse_Cancel
Log("Cancel")
Case D4.DialogResponse_Negative
Log("Negative")
Case D4.DialogResponse_Positive
Log("Positive")
End Select