Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 01:40
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Buttondialog - nicer than xmessage
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Fri 20 Jun 2008, 15:13    Post_subject:  Buttondialog - nicer than xmessage
Sub_title: 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
Buttondialog-0.1.pet
Description 
pet

 Download 
Filename  Buttondialog-0.1.pet 
Filesize  31.63 KB 
Downloaded  559 Time(s) 
Buttondialog-0.1.jpg
 Description   
 Filesize   47.68 KB
 Viewed   908 Time(s)

Buttondialog-0.1.jpg


_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7083
Location: Perth, Western Australia

PostPosted: Fri 20 Jun 2008, 22:24    Post_subject:  

That's great! I'm downloading it right now...
_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 20 Jun 2008, 23:57    Post_subject:  

Quote:
So you could not see the pictures.


wot no pics?
thanks Mark - will download again Smile

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

FreeBasic
F. A. B.

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 Crying or Very sad
Any help appreciated Wink

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sun 22 Jun 2008, 12:24    Post_subject:  

rxvt -e /usr/bin/pjsua &

Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 22 Jun 2008, 12:31    Post_subject:  

Embarassed

works
so easy . . . I always forget - thanks for 3 minute response time . . .

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0671s ][ Queries: 13 (0.0168s) ][ GZIP on ]