jaPBe 3.13.4 [IDE for PB 4 and PB 5]

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

Moderator: gnozal

chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

inc. wrote:Here you have both announcements. The one at www.Purebasic-lounge.de and the one at the german purebasic board.
http://www.purebasic-lounge.de/viewtopi ... hlight=oop
http://www.purebasic.fr/german/viewtopi ... hlight=oop

Samples are inside. Its a plugin for both, the PB-IDE and jaPBe.
I can't make it work in JaPBe... Im running PB4 Final, last jaPBe...
it doesnt recognize the directives: ENABLEOOP, DISABLEOOP

I installed it in jaPBe\Plugins... JaPBe detects it but it doesnt work..

Is there some info you can post to start? :cry:
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

gnozal wrote:What do you suggest ?
I have now disable the option create new file and enable the overwrite file option.
It works now very good and 100%. Firstly I think the Original Source will be overwrite with
the converted code, therefore I select the "NewFile" option. However, now I have only
two Panels and all is correct. I think you must not anymore change it. Great Work. [Thumbs Up]
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

@chen

Even its not on topic ....
In case of jaPBe usage u still have to compile by choosing the OOP plugin in the plugins dropdown menue of jaPBe as its still not updated.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Any chance to add autocomplete for Imports?
Lars
User
User
Posts: 31
Joined: Sat Sep 27, 2003 5:54 pm
Location: Bonn, Germany
Contact:

Post by Lars »

I'm unsure whether this problem has already been posted.

"Find Next" (CTRL+F) behaves very sometimes behaves more than
strangely and finds previous searches' results instead of the new search-
word. Can't really reproduce the error, but maybe this description already is enough?

[Edit:]
Probably located:
It seems to happen when I look for something with ALT+F over a marked
word to look for that word. Once I give the focus to the 'look for' string
gadget it works fine.
Lars
The only problem with troubleshooting is that sometimes the trouble shoots back.
P4 3Ghz, 512MB RAM, Radeon 9600Pro, WinXP Home SP2, PB V4.0
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Shannara wrote:Any chance to add autocomplete for Imports?
It already works ?!

Example :

Code: Select all

Import "OnlyATest.lib"
  MyNewImportIsAutocompleted()
EndImport
"MyNewImportIsAutocompleted(" is in the autocomplete dropdown list.
Or do you mean something else ?
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 »

inc. wrote:@chen
Even its not on topic ....
In case of jaPBe usage u still have to compile by choosing the OOP plugin in the plugins dropdown menue of jaPBe as its still not updated.
Sorry, but I am not sure if I will support the OOP plugin (where ebp is loaded with the address of the structure element), as Fred says it's not safe to assume it will always work (undocumented feature).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

2byte charator-code (SJIS) Trouble


Procedure LoadLanguage(lan$)
Procedure MenuTitleAlt(Text$)
Procedure MenuItemAlt(id,Text$)
Procedure OpenSubMenuAlt(Text$)


It did because of these codes.
It is because these do not consider two byte character.
I can solve this problem. Is the judgment code in two bytes better?
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

gnozal wrote:
inc. wrote:@chen
Even its not on topic ....
In case of jaPBe usage u still have to compile by choosing the OOP plugin in the plugins dropdown menue of jaPBe as its still not updated.
Sorry, but I am not sure if I will support the OOP plugin (where ebp is loaded with the address of the structure element), as Fred says it's not safe to assume it will always work (undocumented feature).
I do agree on that! But Hellhound - also member from purebasic-lounge did offer an approach where you can obtain the same comfort but where the code in the background will be translated based on interfaces etc.:
http://www.purebasic-lounge.de/viewtopi ... hlight=oop
Also the final code resulting there seems shorter and Hellhound mentioned that by this only every object increases by 4 bytes instead 4 bytes per method.

Means ... the supported OOP syntax in jaPBe would still make sense. It just depends all on the used Preprocessor plugin and maybe we get some time to write a proprocessor or updating edels one using the same highlightning sytax but diff. routines (like Hellhounds one) to be translated to in the background.[/code]
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Lars wrote:I'm unsure whether this problem has already been posted.

"Find Next" (CTRL+F) behaves very sometimes behaves more than
strangely and finds previous searches' results instead of the new search-
word. Can't really reproduce the error, but maybe this description already is enough?

[Edit:]
Probably located:
It seems to happen when I look for something with ALT+F over a marked
word to look for that word. Once I give the focus to the 'look for' string
gadget it works fine.
I think I found the problem.
Please try http://people.freenet.de/gnozal/jaPBeForPB400_beta.zip
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 »

oryaaaaa wrote:2byte charator-code (SJIS) Trouble


Procedure LoadLanguage(lan$)
Procedure MenuTitleAlt(Text$)
Procedure MenuItemAlt(id,Text$)
Procedure OpenSubMenuAlt(Text$)


It did because of these codes.
It is because these do not consider two byte character.
I can solve this problem. Is the judgment code in two bytes better?
I don't fully understand your problem (can't test it), but if you can solve it and it still work in 1 byte character code, I will gladly update the jaPBe code.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Lars
User
User
Posts: 31
Joined: Sat Sep 27, 2003 5:54 pm
Location: Bonn, Germany
Contact:

Post by Lars »

Seems to be fixed, thanks.
Lars
The only problem with troubleshooting is that sometimes the trouble shoots back.
P4 3Ghz, 512MB RAM, Radeon 9600Pro, WinXP Home SP2, PB V4.0
User avatar
oryaaaaa
Addict
Addict
Posts: 825
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

I don't fully understand your problem (can't test it), but if you can solve it and it still work in 1 byte character code, I will gladly update the jaPBe code.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Ok, I see. What did you change in the source code ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

Post by Le Soldat Inconnu »

My own Tool don't works correctly, jaPBe don't run the correct tool, always the last tool in the menu.

I look the code and find why it's don't work fine.

In the file Tools.pbi

When we use %file parameter, you run SaveSourceCode() but this procedure put the list AddTools_Entries() to the end.
So, when jaPBe launch the tools, it don't use the correct element of AddTools_Entries().

To correct, I just add

Code: Select all

SelectElement( AddTools_Entries(), MenuID - 1 )
after SaveSourceCode()

I don't read all the post, may be this bug is already report.

Thanks for correction ;)
LSI
Post Reply