Search found 42 matches

by Puffolino
Tue Jul 24, 2018 8:48 am
Forum: Coding Questions
Topic: Read PDF information
Replies: 1
Views: 1044

Read PDF information

Hi, I'd like to see zhe metainformation like title and author of my PDF files, could this be done using Purebasic? PurePDF seems to have functions to create PDF's only, did not find a function in Ghostsscript either. There's a commercial command line tool A-Pdf Info Changer...
by Puffolino
Fri Oct 17, 2014 9:20 am
Forum: Coding Questions
Topic: Gadget Colors
Replies: 3
Views: 1993

Re: Gadget Colors

Sometimes it would be fine to change the background around a PanelGadget, here's a modified code I've found (somewhere/-when) in the forum - there's still an issue, because I could not find out the best value for the left position of the text gadget.

#DisableTheme=0

Global GadgetBackgroundColor ...
by Puffolino
Fri Oct 17, 2014 9:15 am
Forum: Feature Requests and Wishlists
Topic: Set Help file location in editor preferences
Replies: 3
Views: 1904

Set Help file location in editor preferences

When multiple PB versions (5.11, 5.23, 5.31) are installed, additional help files (Win32.hlp, ASM.hlp etc.) must be installed for each IDE. I would prefer to keep all these help files in a single directory and allow to set the path in the preferences for each PB IDE.
by Puffolino
Fri Sep 12, 2014 7:10 am
Forum: Windows
Topic: How to grey/blur screen, while own window is on top?
Replies: 19
Views: 11998

Re: How to grey/blur screen, while own window is on top?

How to get a smooth blur effect when using different blur factors within an image?
I'd like to have a gradient between lower blurring on one side of the image to higher blurring effect on the other side, so I use image stripes to do that. The resulting image is not as good as I thought, you can ...
by Puffolino
Sun Mar 17, 2013 6:05 pm
Forum: Coding Questions
Topic: Font Drawing Quality
Replies: 6
Views: 2120

Re: Font Drawing Quality

Font quality may change when using different drawing modes: DrawText is able to produce high quality output using certain modes, but worse results with others (especially alpha blend).
by Puffolino
Fri Mar 01, 2013 3:17 pm
Forum: Feature Requests and Wishlists
Topic: View statistics of memory usage
Replies: 6
Views: 1246

Re: View statistics of memory usage

Michael, your code seems to show wrong memory numbers, "virtual memory" is not included.
by Puffolino
Fri Mar 01, 2013 3:11 pm
Forum: Feature Requests and Wishlists
Topic: Improve autocasting of numeric values in strings
Replies: 4
Views: 930

Re: Improve autocasting of numeric values in strings

Would also be fine to allow to set user defined casts, like {string}, {integer}, {double} etc.

Code: Select all

s.s="2"
debug {integer} Val( {string} 1 + "." + s ) / 3
by Puffolino
Fri Feb 08, 2013 12:19 pm
Forum: Coding Questions
Topic: Windows update messages
Replies: 10
Views: 2091

Re: Windows update messages

SFSxOI wrote:

Code: Select all

SetGadgetState(#ListIcon_0,Random(20))
So how does it work...
For ListIcons, the parameter specifies the position of the selector, -1 means no selection will be seen.
by Puffolino
Fri Jan 04, 2013 5:26 pm
Forum: Feature Requests and Wishlists
Topic: Rename ProcedureReturn to Return
Replies: 10
Views: 1917

Re: Rename ProcedureReturn to Return

Thanks to Luis for your comments and the nice idea to use Autohotkey to speed things up.

I also like the funny postings about Basic standards (!) :D

___
10 Macro Plus(minus)
20 -minus
30 EndMacro
40 Macro One(fortwo)
50 int(sign(infinity()))
60 EndMacro
70 Print Plus(One(MC))
by Puffolino
Fri Dec 28, 2012 7:17 pm
Forum: Feature Requests and Wishlists
Topic: While... Until
Replies: 14
Views: 1911

Re: While... Until

Little John wrote:
Puffolino wrote:
Little John wrote:
Puffolino wrote:Shouldn't be Result<Len(a) ?
No.
a.s=""

Result=1
:
Yes, and Michael's pseudo code would give the same result.
So my code is a correct "translation" of his pseudo code.
:D
by Puffolino
Fri Dec 28, 2012 7:10 pm
Forum: Feature Requests and Wishlists
Topic: While... Until
Replies: 14
Views: 1911

Re: While... Until

Little John wrote:
Puffolino wrote:Shouldn't be Result<Len(a) ?
No.
a.s=""

Result=1
:
by Puffolino
Fri Dec 28, 2012 6:59 pm
Forum: Feature Requests and Wishlists
Topic: While... Until
Replies: 14
Views: 1911

Re: While... Until

Shouldn't be Result<Len(a) ?

However, Break is never needed :wink:
by Puffolino
Fri Dec 28, 2012 12:37 pm
Forum: Tricks 'n' Tips
Topic: Working with multiple Purebasic versions...
Replies: 4
Views: 1428

Re: Working with multiple Purebasic versions...

I've stopped mixing different versions because of their different User Libs and help files. But where's the advantage for an extra start program?
by Puffolino
Fri Dec 21, 2012 6:13 am
Forum: Feature Requests and Wishlists
Topic: Poor Jpg Quality - SaveImage, #PB_ImagePlugin_JPEG
Replies: 23
Views: 5620

Re: Poor Jpg Quality - SaveImage, #PB_ImagePlugin_JPEG

Bad luck, that the range for
    the quality parameternhas been definen from 0 to 9 instead of 0 to 99 which would have given us a better granularity to influence the resuoting image size and quality.
    by Puffolino
    Thu Dec 20, 2012 8:57 pm
    Forum: Coding Questions
    Topic: bug of len() or winApi for chinese
    Replies: 4
    Views: 1539

    Re: bug of len() or winApi for chinese

    Are you using the Version 6.1 of PureBasic? :shock: