Page 16 of 104

Posted: Tue Mar 28, 2006 1:24 am
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:

Posted: Tue Mar 28, 2006 2:26 am
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()

Posted: Tue Mar 28, 2006 10:49 am
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.

Posted: Tue Mar 28, 2006 5:32 pm
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:

Posted: Wed Mar 29, 2006 11:07 am
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.

Posted: Wed Mar 29, 2006 6:31 pm
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

Posted: Thu Mar 30, 2006 5:07 am
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:

Posted: Thu Mar 30, 2006 10:16 am
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).

Posted: Thu Mar 30, 2006 5:45 pm
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

Posted: Thu Mar 30, 2006 6:14 pm
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.

Posted: Thu Mar 30, 2006 8:43 pm
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 ?

Posted: Thu Mar 30, 2006 9:07 pm
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:

Posted: Fri Mar 31, 2006 9:01 am
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

Posted: Fri Mar 31, 2006 9:03 am
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     ;<

Posted: Fri Mar 31, 2006 2:52 pm
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 ;)