Re: [GD-Linux] portable MessageBox
Ignacio Castaño <[email protected]> Wed, 19 Nov 2003 03:41:30 +0100
| Newsgroups | gmane.games.devel.linux |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've finally found a very simple solution that should work on most cases.
Currently most distributions provide dialog programs, those programs are
designed to be used from shell scripts, and provide a very simple
interface to create different kind of dialogs. Some examples of those
programs are: kdialog, zenity and xdialog.
So, to create a simple message box, you can do:
system( format("kdialog --title %s --msgbox %s", title, text) );
If none of those programs are available, you can still use a little
utility called xmessage that I think should be available on most systems.
Hope that helps,
--
Ignacio Castaño
[email protected]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Gamedevlists-linux mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-linux
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=554