Buttondialog is a utility written in Freebasic.
So it easily can be extended.
The binary itself is only 31 kb in size, or 15 kb compressed with upx.
You can run it from shellscripts, if you want more options than xmessage offers.
It is run like this:
buttondialog rcfolder
rcfolder can be a folder of your choice, that contains configurationfiles.
These files define the texts, pictures, actions and some options (e.g. buttons can be arranged vertically).
A demo is included, just type in a consolewindow:
buttondialogdemo
hint for programmers:
it does not use a Gladefile, as shown here:
http://murga-linux.com/puppy/viewtopic.php?t=30525
Instead, the elements are created using native Gtk functions.
So this approach is quite flexible.
You could use /tmp/myfolder as rcfolder, and create the rcfiles in it generated by a script.
If the first button is clicked, the dialog prints
#1
to stdout, and so on.
The PET includes the files for the Demo, and the Basic-Code (GPL).
If you want to add it to a pupplett for own purposes, you need only the binary "buttondialog".
Mark
Buttondialog - nicer than xmessage
Buttondialog - nicer than xmessage
- Attachments
-
- Buttondialog-0.1.pet
- (31.63 KiB) Downloaded 833 times
-
- Buttondialog-0.1.jpg
- (47.68 KiB) Downloaded 1034 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
wot no pics?So you could not see the pictures.
thanks Mark - will download again
linked here . . .
http://tmxxine.com/wik/wikka.php?wakka=FreeBasic
FreeBasic
F. A. B.
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
Mark - I am using it as a simple front end for pjsua (a VOIP app)
this is the buttons.rc part
this line should open rxvt and run pjsua . . . (a command line app)
Any help appreciated
this is the buttons.rc part
Code: Select all
Puppy Sip VOIP
resource/voice-support.png
rxvt /usr/bin/pjsua &
Pjsip commands
resource/nis24.xpm
defaultbrowser http://www.opensourcesociety.org/2008/01/20/pjsip-command-line-voip-client-for-linux/ &
exit
resource/stock_exit.png
EXIT
It don'trxvt /usr/bin/pjsua &
Any help appreciated