PoppyMenu and StdDlgs ... Ver. 1.1

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

PoppyMenu and StdDlgs ... Ver. 1.1

#1 Post by sunburnt »

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...
Attachments
PoppyMenu-StdDlgs_1.1.zip
Zip file contains a dir. Just unzip anywhere.
A good Puppy place is: /root/my-applications/bin
(109.22 KiB) Downloaded 352 times
Last edited by sunburnt on Fri 28 Sep 2012, 21:55, edited 4 times in total.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2 Post by sunburnt »

A complete rewrite of poppyMenu and fixes for stdDlgs.

Please report any bugs here, so I may crush them with extreme prejudice. :wink:

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#3 Post by Geoffrey »

I tried this in Saluki, the font is a little to big for some themes 8)
Attachments
poppymenu2.jpg
light-nimbus
(15.61 KiB) Downloaded 461 times
poppymenu1.jpg
clearlooks
(16.07 KiB) Downloaded 442 times
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#4 Post by sunburnt »

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...

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#5 Post by sunburnt »

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.
Last edited by sunburnt on Fri 28 Sep 2012, 03:42, edited 4 times in total.

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#6 Post by Geoffrey »

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.
Attachments
custom_DPI_66.jpg
(16.75 KiB) Downloaded 404 times
poppymenu_Moblin_Netbook.jpg
(15.37 KiB) Downloaded 391 times
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#7 Post by sunburnt »

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
Last edited by sunburnt on Sun 23 Sep 2012, 04:21, edited 1 time in total.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#8 Post by sunburnt »

### 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.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#9 Post by sunburnt »

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

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#10 Post by Geoffrey »

A belated reply, I just tried version 1.1 , this is better though textsize 7.5 is better still.
Attachments
stock.jpg
(31.25 KiB) Downloaded 330 times
TextSize7.5.jpg
(31.97 KiB) Downloaded 336 times
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#11 Post by sunburnt »

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.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#12 Post by sunburnt »

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?
Attachments
poppyMenu_ALT-2.gz
UnGzip in the folder: PoppyMenu-StdDlgs_1.1
Run it as: poppyMenu_1.1_ALT-2.gz
(41.39 KiB) Downloaded 321 times
Last edited by sunburnt on Sat 29 Sep 2012, 05:23, edited 1 time in total.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#13 Post by sunburnt »

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.

Post Reply