Dim sf As Object = PrefDialog3.ShowDialog(Item, "OK", "CANCEL ACTION")
Sleep(0)
' Fix Linux UI
#if B4J
Dim btnCancel As B4XView = PrefDialog3.Dialog.GetButton(xui.DialogResponse_Cancel)
btnCancel.Width = btnCancel.Width + 80dip
btnCancel.Left = btnCancel.Left - 80dip
btnCancel.TextColor = xui.Color_Red
Dim btnOk As B4XView = PrefDialog3.Dialog.GetButton(xui.DialogResponse_Positive)
btnOk.Left = btnOk.Left - 80dip
#End If
Wait For (sf) Complete (Result As Int)