Page 2 of 3

Posted: Tue Jul 01, 2003 8:01 pm
by GPI
Ok, Preview 2 - Update (need the old files of preview 2)

http://caosandkin.bei.t-online.de/pureb ... update.zip

Posted: Tue Jul 01, 2003 9:46 pm
by ricardo
GPI wrote:Ok, Preview 2 - Update (need the old files of preview 2)
Which files? Just the dll?

When i type Plot (per example) the autocomplete appears but if i press enter or space the word dosen't paste on the editor, if i do the same with For it get pasted.

At first if i resize the app the gadgets dosent resize.

Otherwise its very nice :D

The part of Bookmarks, Variables, Constants, etc. is SUPERIOR!!!

btw, how can show/hidde the panel?

Posted: Wed Jul 02, 2003 12:18 am
by fsw
Sorry GPI but I hadn't time to test it :(

But, what I can see now in a few minutes is, that it looks good. 8)

The only thing I would suggest, is to add a functionallity I did on mine:
the wide line number margin looks really ugly :!:
That's why I did make the width dependable on the max line number of the showed code.
Here is my procedure I used in my editor:

Code: Select all

Procedure CheckLineMargin(hwndScintilla)

  If FSW_Editor\ViewLineNumbers = 1
    Border = 7
;  Debug SendMessage_(hwndScintilla, #SCI_GETLINECOUNT, 0, 0)
;  Debug Len(Str(SCI_GetLineCount(hwndScintilla)))
    Digits = Len(Str(SCI_GetLineCount()))
  ;  Debug Digits
    SCI_SetMarginWidthN(0, Border + (7 * Digits))
  Else
    SCI_SetMarginWidthN(0,0) ; line numbers
  EndIf
  
EndProcedure
as you can see this procedure adapts the marginwidth automatically (you have to put it in a loop or use it as a thread...)
This is way better than a fixed width IMHO.

BTW Don't know if it works with different sizes of text. So maybe you have to incorporate the text height in this procedure too, because AFAIK the text height of the margins are the same as the highest text size.

Posted: Wed Jul 02, 2003 4:41 am
by ricardo
One more little Bug: If i use a variable like File$ it get on the variables panel just like "File", the $ is lost.

Posted: Wed Jul 02, 2003 7:50 am
by GPI
>Which files? Just the dll?

Yes, but when you want the complete SourceCode, you need the old unchanged in the first zip

>When i type Plot (per example) the autocomplete appears but if i press
>enter or space the word dosen't paste on the editor, if i do the same with
>For it get pasted.

Press ctrl+return or tab. I changed this, because when i want to type end and then press return, than it should stand there end and not endif.


>At first if i resize the app the gadgets dosent resize.

You should wait until the compiler is initalised. Ok, i will do a additional check.

>btw, how can show/hidde the panel?

When you right-click on the splitter, it should be hide (not completly, 4 pixels are on the boarder). When you move the mouse on this space, it will popup.
You can also set in the preferences, that jaPBe should handle the Info-Panel like a taskbar. It is hide automatical, when you move the mousecursor outside the infopanel and pop-up, when you move the mouse in the popup-space.

GPI

bug...

Posted: Thu Jul 03, 2003 12:51 am
by fsw
There is a bug when you have procedures and disable FOLDMARGIN in the Preference Dialog.
The background color of the Procedure/EndProcedure lines will turn white instead of staying yellowish like the rest...

Posted: Thu Jul 03, 2003 10:06 am
by GPI
>The background color of the Procedure/EndProcedure lines will turn white
>instead of staying yellowish like the rest...

Ok, i will look at this, maybe a bug in Scintella...

About the Linenr-margin, i will test it.

>If i use a variable like File$ it get on the variables panel just like "File",
>the $ is lost.

I see the $ as a structure, so it is throw away.

For jaPBe this are all the same:
*file, file, file$ test\file

Posted: Thu Jul 03, 2003 12:35 pm
by GPI
It is a bug in Scintella. I set now the hide-foldmargin to 1 (instead of 0) and it then also invisible. But i must "..." for the bookmarks.

about the linemargin:

Code: Select all

Procedure CheckLineMargin()
  If ShowLineNr
    a$=LSet("_",Len(Str(SCI_GetLineCount()))+1,"9")
    a=SCI_TextWidth(#STYLE_LINENUMBER,@a$)
    If SCI_GetMarginWidthN(#Margin_LineNumbers)<>a
      SCI_SetMarginWidthN(#Margin_LineNumbers,a)
    EndIf
  EndIf
EndProcedure
about $:
I have now added, that file$ will be show as "file$".

About the Textheight:
Scintella can't handle diffrent Text-Height for diffrent Lines. All lines have the same height. When you set a height to 99, all lines are very very big.

GPI

Posted: Sat Jul 05, 2003 8:22 pm
by GPI
Tools-menu is now ready. Try the new Ascii-Table.

Also i added the posibility of Plugins, which can communicate direct with jaPBe. Look in the plugin directory.

http://caosandkin.bei.t-online.de/pureb ... eview3.zip

p.s.: I havend time to test Config Tools complete, so please handle this with care. Would be nice, when somebody will test it (exspecial the reload option).

Posted: Sat Jul 05, 2003 10:08 pm
by woki
ASCII table shows up shortly and then the field is grey. Moving the cursor in the grey field shows characters in the little preview field. Moving the main window partial out of the screen and then selecting ASCII table in the menu the table does not appear. Moving the main window back to center of the screen and then selecting ASCII table leads to same result (table does not appear). Close program and reopen it's ok again.
Bringing up color picker and closing the dialog without any selection blocks the main window (you need the task manager to end the program).

that's so far

XP prof. with SP1

Posted: Sat Jul 05, 2003 11:05 pm
by GPI
>ASCII table shows up shortly and then the field is grey. Moving the
>cursor in the grey field shows characters in the little preview field.

Change the font and it will work :( I added a redraw and now it is displayed under WinXP (under win98se no problems).
Also a funny bug: Under WinXP Char 255 is never displayed ...
I added a setgadgettext() and now it is showed.

> Moving the main window partial out of the screen and then selecting
>ASCII table in the menu the table does not appear.

no, it appears outside the desktop...

>Moving the main window back to center of the screen and then selecting >ASCII table leads to same result (table does not appear).

because it is only activate

>Close program and reopen it's ok again.

I have changed this, the sub-windows are now screencentered (before it was windowcentered)

>Bringing up color picker and closing the dialog without any selection
>blocks the main window (you need the task manager to end the
>program).

I had typed true instad #true.

http://caosandkin.bei.t-online.de/pureb ... update.zip

Posted: Sun Jul 06, 2003 12:35 am
by woki
Hey, that's quick - it's all ok now.

Config Tools dialog work - reload source either.

:D :D :D :D

Posted: Sun Jul 06, 2003 7:52 am
by ricardo
Need to overwrite all the old files?

*When type DataSection and the Data.s the S appears like a structure, not a big problem, but want to let you know.

I think that Fred must take a lot of your code to add it to the 'official' pb editor because yours is more advanced in my opinion. Its beta, ok, but is very promising.

Posted: Sun Jul 06, 2003 2:03 pm
by GPI
>Need to overwrite all the old files?

yes.


>*When type DataSection and the Data.s the S appears like a structure, not
>a big problem, but want to let you know.

I see the ".s" as a structure.

>I think that Fred must take a lot of your code to add it to the 'official' pb
>editor because yours is more advanced in my opinion. Its beta, ok, but is
>very promising.

I don't think, that Fred is so stupid and do all the work, that a other person had already done.

Posted: Sun Jul 06, 2003 9:28 pm
by Fred
I already started to include some GPI mods in the official source and it will continue. It's nice to see another editor dedicated to PB growing so fast.