The time now is Tue 21 May 2013, 14:56
All times are UTC - 4 |
| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 20 Jun 2008, 15:13 Post subject:
Buttondialog - nicer than xmessage Subject description: created with Freebasic |
|
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
 |
| Description |
|

Download |
| Filename |
Buttondialog-0.1.pet |
| Filesize |
31.63 KB |
| Downloaded |
506 Time(s) |
| Description |
|
| Filesize |
47.68 KB |
| Viewed |
835 Time(s) |

|
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 20 Jun 2008, 17:44 Post subject:
|
|
buttondialogdemo was missing this line:
cd /usr/local/Buttondialog
So you could no see the pictures.
I updated the PET with it.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6856 Location: Perth, Western Australia
|
Posted: Fri 20 Jun 2008, 22:24 Post subject:
|
|
That's great! I'm downloading it right now...
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 20 Jun 2008, 23:57 Post subject:
|
|
| Quote: | | 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 WIKI
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sun 22 Jun 2008, 12:21 Post subject:
|
|
Mark - I am using it as a simple front end for pjsua (a VOIP app)
this is the buttons.rc part
| Code: | 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)
| Quote: | | rxvt /usr/bin/pjsua & |
It don't
Any help appreciated
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 22 Jun 2008, 12:24 Post subject:
|
|
rxvt -e /usr/bin/pjsua &
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sun 22 Jun 2008, 12:31 Post subject:
|
|
works
so easy . . . I always forget - thanks for 3 minute response time . . .
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|