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 Tue 21 Oct 2014, 18:20
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
PoppyMenu and StdDlgs ... Ver. 1.1
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Wed 12 Sep 2012, 03:55    Post_subject:  PoppyMenu and StdDlgs ... Ver. 1.1  

The download attachment: PoppyMenu-StdDlgs.zip is a dir. UnZip it anywhere.

I bundled the GTK+ file dialogs and the message dialog into 2 execs.
File dialog is: File Open, File Save, and Dir. Open.
File Save and Dir. Open dialogs can make a new dir.
# For help type: stdDlgs
Msg. demo. type: /(path)/stdDlgs -mi 1 -f /(path)/stdDlgs.msg
... There`s other demos also showing how the dialog sizes itself.
OR type: /(path)/stdDlgs -mw 2 Hi Puppy Linux fans!

=========
I also made a popup menu as I can`t find one I like.
It uses vovchik`s picscale app. to resize the icons for the menu.

# For help type: poppyMenu ?
Menu demo. type: /(path)/poppyMenu

PoppyMenu has icons and allows flexible paths for exec. and icon files.
Perhaps too many search possibilities, PoppyMenu is a little slow on my old PC.

If you find them useful for a project, let me know what you`re using them for.
I made a simple version of the menu especially for AppPkg applications.
They were made with the BaCon Basic Converter, so are C exec. files.


### Version 1.1 , Rewrite and new features.
.
# Lots of testing, if you find bugs please report them here...
PoppyMenu-StdDlgs_1.1.zip
Description  Zip file contains a dir. Just unzip anywhere.
A good Puppy place is: /root/my-applications/bin
zip

 Download 
Filename  PoppyMenu-StdDlgs_1.1.zip 
Filesize  109.22 KB 
Downloaded  199 Time(s) 

Edited_times_total
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Fri 21 Sep 2012, 22:18    Post_subject:  

A complete rewrite of poppyMenu and fixes for stdDlgs.

Please report any bugs here, so I may crush them with extreme prejudice. Wink
Back to top
View user's profile Send_private_message 
Geoffrey


Joined: 30 May 2010
Posts: 1428
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Fri 21 Sep 2012, 23:54    Post_subject:  

I tried this in Saluki, the font is a little to big for some themes Cool
poppymenu2.jpg
 Description   light-nimbus
 Filesize   15.61 KB
 Viewed   440 Time(s)

poppymenu2.jpg

poppymenu1.jpg
 Description   clearlooks
 Filesize   16.07 KB
 Viewed   423 Time(s)

poppymenu1.jpg


_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sat 22 Sep 2012, 03:09    Post_subject:  

Hi Geoffrey; Thanks for the feed-back. It`s font size 12, but bolded.
Yeah, getting things to work in different Linux setups is a nightmare.
There`s just no way to account for how the final text will be displayed.

I`m checking on a possibility for getting the text`s actual rendered size.
This is the only way that I know of to overcome all the variability.

I guess I should have made an option for setting the font size.
I`ll look into that tomorrow...
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sat 22 Sep 2012, 15:08    Post_subject:  

Geoffrey; Try this and post a pic for me to see.

What bothers me is that the app`s font is set to: FONT Liberation Mono bold 12
So it shouldn`t change, but we all know how that works out...
Your pics look like the font isn`t changing with your font setting.
But the text size is being effected. (Odd)

I`d hoped it wouldn`t be necessary for users to set the GUI dimensions.


# NEW OPTION: "TextSize". It sets the width and height.
# Try adding: TextSize = 7 to the top of your poppy.mnu file.

Edited_times_total
Back to top
View user's profile Send_private_message 
Geoffrey


Joined: 30 May 2010
Posts: 1428
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Sat 22 Sep 2012, 22:28    Post_subject:  

I tried it with all themes, only 2 have a height problem with the font, Moblin Slim and moblin Netbook, but all themes don't show all the text.

Setting the custom DPI to 66 shows all.
custom_DPI_66.jpg
 Description   
 Filesize   16.75 KB
 Viewed   383 Time(s)

custom_DPI_66.jpg

poppymenu_Moblin_Netbook.jpg
 Description   
 Filesize   15.37 KB
 Viewed   369 Time(s)

poppymenu_Moblin_Netbook.jpg


_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sat 22 Sep 2012, 23:19    Post_subject:  

Yeah, and I forgot to mention that I increased the button height from 20 to 22.
You can tell the difference in the two sets of pics you posted.

### Geoffrey... Did you add the Width = 7 option to the file: poppy.mnu
It doesn`t look like the menu`s size changed any ( but it`s hard to tell ).

I think I`ll try making the size option vary the height as well as the width.

Thanks for the help Geoffrey, look for the revised test file soon... Terry

Edited_time_total
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Sun 23 Sep 2012, 00:04    Post_subject:  

### NEW test file posted above.

# Be sure to use the new option: TextSize if the menu is too small.

Add at the top of the file poppy.mnu: TextSize = 7.5

Then try: 8, 8.5, 9. Until it`s the menu is the correct size.

Geoffrey:
Try changing the font size to see if that effects anything.
And try stdDlgs to see how it displays. Please post pic.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Thu 27 Sep 2012, 23:51    Post_subject:  

As there`s new options added, the version is now: 1.1

PoppyMenu now has a menu file option: TextSize = (7 is default)
Demo.2 is an example of the new option.

StdDlgs has an added MsgDialog command line option: -s WxH
Example command: stdDlgs -mi close -s 300x200 This is a test.
Example command: stdDlgs -mi close -s 300x200 -f (Msg. File)

This should fix any size problems.
Please report all bugs here... Terry
Back to top
View user's profile Send_private_message 
Geoffrey


Joined: 30 May 2010
Posts: 1428
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Fri 28 Sep 2012, 02:46    Post_subject:  

A belated reply, I just tried version 1.1 , this is better though textsize 7.5 is better still.
stock.jpg
 Description   
 Filesize   31.25 KB
 Viewed   308 Time(s)

stock.jpg

TextSize7.5.jpg
 Description   
 Filesize   31.97 KB
 Viewed   318 Time(s)

TextSize7.5.jpg


_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Fri 28 Sep 2012, 17:55    Post_subject:  

Hi Geoffrey; It kinda looks like PoppyMenu should be fully controlled like StdDlgs is.
The height is growing more than it needs to compared to the width.

Maybe the dimensions ( WxH ) should be for the longest button?
That way the height of all buttons is controlled, and the width of the longest button.
The icons size themselves to the height of the buttons.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Fri 28 Sep 2012, 19:38    Post_subject:  

Here`s Alternate-2 release candidate.

# ALT-2 has a bug fix for IconPath, the "/" was not added to the end.

The alternate ver. uses WxH to set the dimensions of the longest button.
See Help...

In the file: PoppyMenu-StdDlgs_1.1/poppy.mnu-2
Change the first line: TextSize =
To this: Btn-Size = 120x32
This will give a menu of large buttons and icons.

Now the user can fine tune the width and height independently.

I think that this is the best setup for PoppyMenu.
Feed back is appreciated. Which is the best one?
poppyMenu_ALT-2.gz
Description  UnGzip in the folder: PoppyMenu-StdDlgs_1.1
Run it as: poppyMenu_1.1_ALT-2.gz
gz

 Download 
Filename  poppyMenu_ALT-2.gz 
Filesize  41.39 KB 
Downloaded  205 Time(s) 

Edited_time_total
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Fri 28 Sep 2012, 23:59    Post_subject:  

Hey Geoffrey; I just noticed that your pics show demo. 2 not having all the icons.
It`s only happening when the menu is sized it seems.
I`m guessing if you run PoppyMenu in rxvt you`re getting 3 errors in demo. 2:
### ERROR: Icon not found: (icon)

That means that IconPath is not working properly for you, it works fine for me.
Can you confirm this? I`ll be looking at it, I thought it was all working.


### ALT-2 has a bug fix for IconPath, the "/" was not added to the end.
( I just can`t see why it was working for me...)

Geoffrey... Could you please try it and post a pic.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
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.0730s ][ Queries: 12 (0.0087s) ][ GZIP on ]