Buttondialog - nicer than xmessage

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Buttondialog - nicer than xmessage

#1 Post by MU »

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
Attachments
Buttondialog-0.1.pet
(31.63 KiB) Downloaded 832 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]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

buttondialogdemo was missing this line:
cd /usr/local/Buttondialog
So you could no see the pictures.
I updated the PET with it.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#3 Post by BarryK »

That's great! I'm downloading it right now...
[url]https://bkhome.org/news/[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

So you could not see the pictures.
wot no pics?
thanks Mark - will download again :)

linked here . . .
http://tmxxine.com/wik/wikka.php?wakka=FreeBasic

FreeBasic
F. A. B.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#5 Post by Lobster »

Mark - I am using it as a simple front end for pjsua (a VOIP app)

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
this line should open rxvt and run pjsua . . . (a command line app)
rxvt /usr/bin/pjsua &
It don't :cry:
Any help appreciated ;)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

rxvt -e /usr/bin/pjsua &

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#7 Post by Lobster »

:oops:

works
so easy . . . I always forget - thanks for 3 minute response time . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply