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 »

Hi Gnozal,

Is it possible to enable an option in Preferences/Editor2 to look for
Procedures in open sources (or source) so as it is "Enable Paste from panel"?

Or have the option in a righ mouse click.

This option is default in PB IDE Panel, it must be nice in jaPBe. :wink:
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Hi,

Other small request or Big I dont know...

Could you implement the chance to indicate folding pairs....

for example... if -> endif, while - > wend and any pair
we require...

It you give us this facility we can for example folding pairs like...

ContainerGadget -> CloseGadgetList()
PanelGadget - > CloseGadgetList()
ScrollAreaGadget -> CloseGadgetList()
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

chen wrote:Hi, Other small request or Big I dont know...
Could you implement the chance to indicate folding pairs....
I am afraid not ; jaPBe is not build that way (remember I did not design it, I am just the humble replacement coder) : all the folding pairs are hardcoded and I don't have the courage to change this.
chen wrote:Is it possible to enable an option in Preferences/Editor2 to look for Procedures in open sources (or source) so as it is "Enable Paste from panel"?
This option is default in PB IDE Panel, it must be nice in jaPBe.
Sorry, I don't know what you mean. I don't use PBIDE. I just launched it, looked at the panel but I still don't understand.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

chen wrote:
Hi, Other small request or Big I dont know...
Could you implement the chance to indicate folding pairs....
Gnozal Wrote
I am afraid not ; jaPBe is not build that way (remember I did not design it, I am just the humble replacement coder) : all the folding pairs are hardcoded and I don't have the courage to change this.


Ok, dont worry You are doing a great job :wink:

chen wrote:
Is it possible to enable an option in Preferences/Editor2 to look for Procedures in open sources (or source) so as it is "Enable Paste from panel"?
This option is default in PB IDE Panel, it must be nice in jaPBe.
Gnozal Wrote
Sorry, I don't know what you mean. I don't use PBIDE. I just launched it, looked at the panel but I still don't understand.


In jaPBe you can check "Enable Paste from panel", then when you open
the tab Proc in the panel and if you click on a procedure name this is copied and pasted where in current cursor position....

In PB IDE when you are in the panel's Proc tab if you click on a procedure
you are taken where the procedure is declared in the current open source.

If Im not clear enough please open the PB IDE, open a source code with
several procedures, open the procedure tab in panel an click on it.... and
you are going to be taken where the procedure is...

Is this option possible in jaPBe? :cry:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

chen wrote:In PB IDE when you are in the panel's Proc tab if you click on a procedure you are taken where the procedure is declared in the current open source.
Is this option possible in jaPBe? :cry:
Yes, of course, but not in the 'Proc' panel. You have to use the 'Book' tab : if you left-click on a bookmark or a procedure, you are taken to the procedure in the source. If you double-click the procedure is unfold.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

thats true... means to say Im new to jaPBe.... but I love several
features that are not in PB IDE..... :wink:

Sorry but Im going to ask something else......

If its possible to name what commands to indent?

I want to indent some gadgets.... the container ones:
In this way:

Code: Select all

Pn_x = PanelGadget(#PB_Any, 15, 175, 225, 220)
   AddGadgetItem(Pn_x, 1,"Tab 1")
   Bu_x = ButtonGadget(#PB_Any, 15, 15, 105,30,"ButtonGadget")
   St_x = StringGadget(#PB_Any, 15, 60, 150,30,"StringGadget")
   AddGadgetItem(Pn_x, 2,"Tab 2")
   Bu_x = ButtonGadget(#PB_Any, 15, 15, 105,30,"ButtonGadget")
   St_x = StringGadget(#PB_Any, 15, 60, 150, 30,"StringGadget")
CloseGadgetList() ; Close PanelGadget

Co_x = ContainerGadget(#PB_Any, 520, 185, 150, 125,#PB_Container_Raised)
   Bu_x = ButtonGadget(#PB_Any, 15, 15, 105,30,"ButtonGadget")
   St_x = StringGadget(#PB_Any, 15, 60, 150,30,"StringGadget")
CloseGadgetList() ; Close ContainerGadget

Sa_x = ScrollAreaGadget(#PB_Any, 690, 540, 185, 135, 300,200 , 10)
   Bu_x = ButtonGadget(#PB_Any, 15, 15, 105,30,"ButtonGadget")
   St_x = StringGadget(#PB_Any, 15, 60, 150,30,"StringGadget")
CloseGadgetList() ; Close the ScrollAreaGadget

thanks for my questions and requests
Last edited by chen on Thu Mar 30, 2006 6:05 am, edited 2 times in total.
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

gnozal wrote:I've done some tests :
Old jaPBe
The results are identical. Or am I missing something ? Could you post a small code that illustrates your problem ?
Sorry, I was wrong :oops: :oops:
PB 6.21 beta, PureVision User
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

chen wrote:I want to indent some gadgets.... the container ones:
In this way:
Sorry, no. Like the folding, it is hardcoded (and not just a keyword list).
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

Changes :
- added BOM support ( UTF-8 files [page code 65001] are saved with BOM header ; if BOM header detected while loading, code page is set to UTF-8 )
- now the page code in preferences is not global anymore but local for each source
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

chen wrote:I want to indent some gadgets.... the container ones:
In this way:
i always use commented brackets for this.

PanelGadget();{
PanelGadget();{
CloseGadgetList();}
CloseGadgetList();}

Just handy.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

gnozal wrote:Update

Changes :
- added BOM support ( UTF-8 files [page code 65001] are saved with BOM header ; if BOM header detected while loading, code page is set to UTF-8 )
- now the page code in preferences is not global anymore but local for each source
Image
Worked fine for me!

Can you also add a Compiler/Project Option for this, please ?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
chen
Enthusiast
Enthusiast
Posts: 338
Joined: Fri Dec 23, 2005 2:20 pm
Location: Quebec, Canada
Contact:

Post by chen »

Flype Wrote:

i always use commented brackets for this.

PanelGadget();{
PanelGadget();{
CloseGadgetList();}
CloseGadgetList();}

It doesnt indent, it makes folding possible in all the places you
require it.....


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

Post by gnozal »

Update

Changes :
- somes fixes
- added code page combobox in Project Options
- changed option 'EnableThreadSafe' to 'EnableThread' in saved source files for PB IDE compatibility
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 »

chen wrote:It doesnt indent, it makes folding possible in all the places you require it.....
From the jaPBe ReadMe.txt :

Code: Select all

* Manual indent - Marks
  Example
  compilerif #debug ;>
    dothis()
  compilerelse      ;=
    dothat
  compilerendif     ;<
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dummy
Enthusiast
Enthusiast
Posts: 162
Joined: Wed Jun 09, 2004 11:10 am
Location: Germany
Contact:

Post by Dummy »

gnozal wrote:
chen wrote:It doesnt indent, it makes folding possible in all the places you require it.....
From the jaPBe ReadMe.txt :

Code: Select all

* Manual indent - Marks
  Example
  compilerif #debug ;>
    dothis()
  compilerelse      ;=
    dothat
  compilerendif     ;<
this way folding is not possible :P

we need a combo comment to fold and intendent ;)
Post Reply