Search found 175 matches

by Tristano
Sat Jun 25, 2016 8:26 am
Forum: Coding Questions
Topic: Question on using External Tools
Replies: 5
Views: 2067

Re: Question on using External Tools

Dear @Lunasole, thank so much for this code example --- it really gives a new light to my project! I did notice that in PB Help file it mentions two environment vars in relation to this topic: PB_TOOL_MainWindow and PB_TOOL_Scintilla , saying they are handles to the IDE, but without and example I co...
by Tristano
Thu Jun 23, 2016 4:41 pm
Forum: Feature Requests and Wishlists
Topic: PB IDE: "Save Snapshot" Menu entry
Replies: 0
Views: 981

PB IDE: "Save Snapshot" Menu entry

I have and editor which has a menu entry "Save Project Snapshot" which allows to save copies of the currently open project file, with the date timestamp added to it. It opens the file-save dialog with the filename already set to " [ project file name ] - [ year_month_day ]-[ 2-digits ...
by Tristano
Thu Jun 23, 2016 3:33 pm
Forum: Coding Questions
Topic: Question on using External Tools
Replies: 5
Views: 2067

Question on using External Tools

I'm working on a tool which manipulates PB source code. It's manually invoked from the menu, and gets passed the %FILE and %TEMPFILE tokens. I just wanted a confirmation on an issue, because documentation isn't too explicit about it. If I've understood correctly, when configuring tools in PB IDE, th...
by Tristano
Thu Jun 16, 2016 4:08 pm
Forum: Announcement
Topic: Name That Color — PB CLI tool to find color names (dE00)
Replies: 6
Views: 3914

Name That Color — PB CLI tool to find color names (dE00)

Hi everybody, I'm, glad to announce that I've just release NTC (Name That Color), a command line utility that accepts color definitions (hex or RGB) as input, and returns the color's name: $ ntc #ff4020 Pomegranate $ ntc 120,80,200 Fuchsia Blue You can dowload the source code (PB 5.42) —or a precomp...
by Tristano
Thu Jun 16, 2016 3:49 pm
Forum: Announcement
Topic: PureBasic 5.50 final is out !
Replies: 132
Views: 63129

Re: PureBasic 5.50 beta 1 is out

Is the Unicode-only mode going to affect Windows console applications? I've just finished a console project with PB 5.42, and I had to compile it in Ascii mode because I realized that in Unicode mode error messages sent to STDERR were posing problems under certain conditions. If I used the app direc...
by Tristano
Sat Jun 11, 2016 11:19 am
Forum: Feature Requests and Wishlists
Topic: IDE : Paste as Comment ( Ctrl + Shift + V )
Replies: 9
Views: 2663

Re: IDE : Paste as Comment ( Ctrl + Shift + V )

Some user implementations are here: http://www.purebasic.fr/english/viewtopic.php?f=3&t=65095&hilit=paste+as+comment Thanks for the link @kenmo! didn't realize some users' workarounds were already available — but doesn't surprise me either, this should be a common problem to all of us IDE u...
by Tristano
Fri Jun 10, 2016 10:38 am
Forum: Feature Requests and Wishlists
Topic: IDE : Paste as Comment ( Ctrl + Shift + V )
Replies: 9
Views: 2663

IDE : Paste as Comment ( Ctrl + Shift + V )

When pasting in the IDE some non-code text, it gets "cleaned up" as if was source code (ie: words like "not", "and", "if", "or", ecc., get capitalized as if they were keywords: "Not", "And", "If", ecc.). Needless to say,...
by Tristano
Fri Jun 10, 2016 10:00 am
Forum: Feature Requests and Wishlists
Topic: IDE External Tools : import/export configuration
Replies: 0
Views: 1043

IDE External Tools : import/export configuration

It would be nice to have in the dialog window of Tools » Configure Tools… an option to save/load (import/export) tools settings on a per-tool basis. This would allow to distribute any external tool with a ready-2-go config file, sparing users from manually setting all needed parameters and options. ...
by Tristano
Tue Jun 07, 2016 12:58 am
Forum: Feature Requests and Wishlists
Topic: Simple version control via Fossil
Replies: 16
Views: 8414

Re: Simple version control via Fossil

Hi @holzhacker, good to know the project is alive and kicking. I also noticed you'r personal website is reachable again (in the past it was blocked by some browsers). If you can wait a week or two so that I can prepare the code and a brief documentation I can upload the code and initially share Pure...
by Tristano
Sun Jun 05, 2016 11:18 am
Forum: Feature Requests and Wishlists
Topic: Simple version control via Fossil
Replies: 16
Views: 8414

Re: Simple version control via Fossil

Hi @Lunasole, thanks for your quick reply. CodeAngel seems a very handy tool — I also resort to archiving work files under a single zip file with progressive numbering and/or dates, especially during draft work, and if I am working alone on a project. And I guess most programmers take this path, wet...
by Tristano
Fri Jun 03, 2016 1:56 pm
Forum: Feature Requests and Wishlists
Topic: Inadequate Project Structure for Version Controlling
Replies: 8
Views: 3869

Re: Inadequate Project Structure for Version Controlling

What about a custom project configuration syntax? Maybe the whole issue of versioning PB projects could be approached by developing a custom cross-platform project configuration file syntax, and a tool that could translate these syntax files into standard .pbp files. Ideally, this tool could rely o...
by Tristano
Fri Jun 03, 2016 1:13 pm
Forum: Applications - Feedback and Discussion
Topic: PBHGEN - PureBasic Header Generator
Replies: 35
Views: 34029

Re: PBHGEN - PureBasic Header Generator

Dear @Henry00, thanks a lot for this great tool and for maintaining it. I need to ask you some more info on how PBHGEN handles modules. From the documentation I haven't understood clearly how it goes about them: does it create separate files (with naming convention filename.modname.pbi )? And how do...
by Tristano
Fri Jun 03, 2016 12:59 pm
Forum: Feature Requests and Wishlists
Topic: Simple version control via Fossil
Replies: 16
Views: 8414

Re: Simple version control via Fossil

Then my friend, you are invited to join the project. I believe it starts a wave of collaborative projects in PB controlled by the fossil and distributed and supported here in the PB forums. :) In fact you can even use as a tool of the IDE and in conjunction with a "PureBasic Project", but...
by Tristano
Fri Jun 03, 2016 12:37 pm
Forum: Feature Requests and Wishlists
Topic: Inadequate Project Structure for Version Controlling
Replies: 8
Views: 3869

Re: Inadequate Project Structure for Version Controlling

I agree with what @Shield sayd: 1. The project file (*.pbp) contains user-defined settings Check out the following XML section from the project file: <section name="data"> <!-- edit: paths are also not platform compatible. --> <explorer view="C:\Users\*user*\*project*\" pattern=&...
by Tristano
Wed Jun 01, 2016 11:40 am
Forum: Coding Questions
Topic: Guidance need for memory optimization (leak avoidance)
Replies: 7
Views: 1515

Re: Guidance need for memory optimization (leak avoidance)

Thanks a lot @Lunasole! Good point about using static, and thanks for the tip on Process Hacker: I've just donwload it and it looks promising — I was using Process Explorer, but this tool seems to give more granul control. In my case, the nested procedure calls related to a set of procedures, not ne...