jaPBe - Preview (just another PureBasic editor)
Which files? Just the dll?GPI wrote:Ok, Preview 2 - Update (need the old files of preview 2)
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

The part of Bookmarks, Variables, Constants, etc. is SUPERIOR!!!
btw, how can show/hidde the panel?
ARGENTINA WORLD CHAMPION
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.
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:
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.

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

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
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.
I am to provide the public with beneficial shocks.
Alfred Hitshock
>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
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...
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...
The background color of the Procedure/EndProcedure lines will turn white instead of staying yellowish like the rest...
I am to provide the public with beneficial shocks.
Alfred Hitshock
>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
>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
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:
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
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
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
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).
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).
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
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
>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
>cursor in the grey field shows characters in the little preview field.
Change the font and it will work

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
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.
ARGENTINA WORLD CHAMPION
>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.
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.