Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog box with Time out. ?
#6
it could probably be done with _messagebox. if the user didn't have to supply an answer, then _notifydialog is good enough.

if not, on linux could use Zenity or probably Yad.

Yad is more complicated for me.

either one is an external separate program which will require using shell _hide.

this is from man zenity. the last item has the most interest.

Quote:General options

--title=TITLE
  Set the dialog title

--window-icon=ICONPATH
  Set the window icon with the path to an image. Alternatively, one of the four stock
  icons can be used: 'error', 'info', 'question' or 'warning'

--icon-name=ICONNAME
  The name of the icon to display on the dialog to override the default stock icons

--width=WIDTH
  Set the dialog width

--height=HEIGHT
  Set the dialog height

--timeout=TIMEOUT
  Set the dialog timeout in seconds
also the type of dialog. (choose yes or no)

Quote:--question
        Display question dialog
one disadvantage is that Zenity might not be installed with linux distribution "by default." Yad is present in even fewer distributions such as endeavouros.
Reply


Messages In This Thread
Dialog box with Time out. ? - by ahenry3068 - 07-26-2024, 12:44 AM
RE: Dialog box with Time out. ? - by TerryRitchie - 07-26-2024, 05:14 AM
RE: Dialog box with Time out. ? - by TerryRitchie - 07-26-2024, 06:00 AM
RE: Dialog box with Time out. ? - by Pete - 07-26-2024, 07:16 AM
RE: Dialog box with Time out. ? - by hsiangch_ong - 07-26-2024, 04:24 PM



Users browsing this thread: 2 Guest(s)