jaPBe 3.13.4 [IDE for PB 4 and PB 5]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Custom Icon not appearing

Post by gnozal »

RichardL wrote:Hi Gnozal,

If I go to 'File/Preferences' and select the 'Project' tab I am offered a field 'Use Icon'. I browse to an icon (thanks for the two starter icons) and select 'Open'. The path and icon name appear on the display. Good!

I then quit via the 'OK' button.
Restarting jaPBe brings back the contents of the 'Use Icon' field, so my choice was recognized.

When I next produce an executable it does NOT have the specified icon; should it, or am I doing something stupid (wouldn't be the first time!)?

Richard L
Hi Richard,
'File -> Preferences -> Project' should be used to set the default settings for new projects (File -> New).
For an existing project (File -> Open), use 'Project -> Options'.
I hope it makes sense.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

Hi,
Thank you... now all OK.

"None so blind as those who do not look in the right place!" ... as my mother used to say :)

Richard
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Post by Hurga »

Hi gnozal

Maybe I do something wrong, but jaPBe dosnt autocomplete the procedures from the include-files.

I think It would be a helpful option, if jaPBe would autocomplete these procedures. Or maybe just these, which are check for the current sourcefile.

Any help or any chance to include this
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Hurga wrote:Maybe I do something wrong, but jaPBe dosnt autocomplete the procedures from the include-files.
It doesn't, unless :
- the include file is loaded
or
- a definition file exists and is loaded [see Preferences -> Definitions].
The definition files are located in %jaPBe%\Definitions ; you can create your own custom definition files, based on your custom includes, with 'Files > Save as definition'. See manual [Menu Overview -> File Menu -> Definitions].
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Peter_DevRes
User
User
Posts: 39
Joined: Tue Mar 17, 2009 6:58 pm
Location: UK

Compiler Configuration issue in Editor jaPBe

Post by Peter_DevRes »

Hi there,


I had a play with the jaPBe editor yesterday and really liked it.

I wanted to use it as my editor of choice but found my code wouldn't compile, the reason was in the PureBasicIDE editor there is an option I need but can't find in jaPBe:

In the traditional PureBasicID editor:
Compiler>Compiler Options>Constants> there is a parameter called '#PB_Editor_BuildCount' which I have ticked. I use this as in a procedure to display the software build number in the program I am developing.

When I run the compiler in jaPBe I get the following error 'Constant Not Found #PB_Editor_BuildCount on Line xxx' because I can't find the resiprical configuration option as per above in jaPBe.


Can anyone help? any ideas?

I either need to find another way to automatically insert the build number...(actually I do need to manually change the constant to increase the build number anyway, so I guess it may not be the best solution)
...or...
Find something like a 'Constant' option in jaPBe.

Thanks & Regards,

Peter
:)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Comiler Configuration issue in Editor jaPBe

Post by gnozal »

Peter_DevRes wrote:When I run the compiler in jaPBe I get the following error 'Constant Not Found #PB_Editor_BuildCount on Line xxx' because I can't find the resiprical configuration option as per above in jaPBe.
Hi Peter,
The #PB_Editor_BuildCount is a PB IDE specific constant.
In jaPBe, the build constant is named #jaPBe_ExecuteBuild.
The jaPBe constants are (from manual) :

Code: Select all

#jaPBe_ExecuteBuild : Build number
#jaPBe_CompilerVersion : PB compiler version
#jaPBe_OnError :  If #True, OnError is enabled in Project Options
#jaPBe_IsDebuggerRunning :  If #True, project is compiled with debugger
#jaPBe_IsExecute :  If #True, compiled with "Create Executable" (else "Compile / Run")
#jaPBe_ExecuteType : Executable type (0 : Windows, 1 : DLL, 2 : Console)
#jaPBe_Compiler_File : Compiled source path + filename (like #PB_Compiler_File) 
#jaPBe_SourcePath : Compiled source path
#jaPBe_SourceFile : Compiled source filename
A quick help is also available in the panel on the right side ('Help' tab)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Sirhc.ITI wrote:Hi, I found a little problem with the "Working Directory" entry of the Tools Section. The Standard IDE sets if working directory is empty, the path of the Sourcecode, but japbe dosn't.
So i have a little problem with one of my tools, i send them "%TempFile" but i want also read the includes, so i need that the working path is the path of the current sourcecode.
Did you try using two parameters for your tool : %TEMPFILE (to get the temp file) and %FILE (to get the source path) ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Sirhc.ITI wrote:Yes, thats an option, but it would be nice if it would behave like the standard ide :lol:
Sure, it would be nice, but jaPBe is older than the actual PB IDE, so it may behave differently.
In this example, it's easy to add an extra case to your tool : if there is a second parameter (%FILE), assume it's jaPBe and act accordingly.
Anyway, I have uploaded a new build which should work as you expect.
Sirhc.ITI wrote:I can't say "run after Compile/Run" without saying "wait until tool quits", Why can't i use a trigger without waiting for a tool to quit? :?
I am sure there is (was ?) a good reason, but I can't remember it right now :lol: One reason I can think of is to avoid problems when 2 or more tools are triggered at the same time : each one may want to modify the same file at the same moment. So waiting for a tool to be finished before starting the next tool makes sense, I think.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update (jaPBe 3.9.4 build 775)

Changes :
- use SDK help : you can now select the SDK ms-help v2 name space in a combobox (example : MS.PSDK.1033 for the Microsoft Platform SDK February 2003).
  Notes :
  . if you select "msdn.microsoft.com", jaPBe will search for the API function on the internet ;
  . if your installed SDK namespace isn't listed in the combobox, you may add a namespace using AddSDKNameSpace in jaPBe.Pref (see manual).
- added a 'Make variable protected' feature : CTRL+L while carret is on variable. A 'Protected MyVar' is added on top of the current procedure.
- added sverson's plugin DisplaySystemMetrics plugin.
- manual updated.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

thanks for the update and you great work!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update (jaPBe 3.9.4 build 779)

Changes :
- huge change in folding code : folding should now be _much_ faster.
  Please report any problem in this thread.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

Hi Gnozal,
I have just upgraded jaPBe to 779. The following line shows a problem... run the cursor along it and see it change!

Code: Select all

BangTime.l = Date(y.w,m.w,D.w,h.w,i.w,S.w) + (86400*10) ; Calculate the timestamp for  JUST TEN Days hence
The problem occurs in the line is embedded in a large file... or on its own.

RichardL
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

RichardL wrote:Hi Gnozal,
I have just upgraded jaPBe to 779. The following line shows a problem... run the cursor along it and see it change!

Code: Select all

BangTime.l = Date(y.w,m.w,D.w,h.w,i.w,S.w) + (86400*10) ; Calculate the timestamp for  JUST TEN Days hence
Hi Richard,
I don't see anything unusual while moving the carret along this line.
Could you be more specific ?
And what build did you use previously ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

Hi,

My previous jaPBe was installed with <jaPBeFor PB400_391>

The effect was that the comment area of the line moved to the left so that it included part of the code... as indicated by the comment highlighting.

Yesterday the effect remained even if I closed jaPBe and re-opened it. I did this several times.

Today, after re-starting the computer I cannot reproduce the problem, but I have needed to fix a broken line or two on yesterday's source file; so it was not a figment of my imagination.

Best regards,
Richard
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

RichardL wrote:The effect was that the comment area of the line moved to the left so that it included part of the code... as indicated by the comment highlighting.
:shock:
RichardL wrote:Today, after re-starting the computer I cannot reproduce the problem, but I have needed to fix a broken line or two on yesterday's source file; so it was not a figment of my imagination.
Ok, thanks. I tried hard on several sources of mine but I could not reproduce this issue.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply