PBEdit - a Canvas-based Texteditor
Re: PBEdit - a Canvas-based Texteditor
Hi Saki, thanks for the reply. Your workaround is working great, but i came along with another solution.
I now send custom events to signal changes of the cursor position or the selection.
This is implemented in the new version (1.0.6) - see first post.
I now send custom events to signal changes of the cursor position or the selection.
This is implemented in the new version (1.0.6) - see first post.
Re: PBEdit - a Canvas-based Texteditor
Hi, yes.
If things are still too hectic, I often put a small timer in, then it is optimally smooth.
But it always depends on what it is.
Best Regards Saki
If things are still too hectic, I often put a small timer in, then it is optimally smooth.
But it always depends on what it is.
Best Regards Saki
地球上の平和
Re: PBEdit - a Canvas-based Texteditor
@Mr L
A little bug is here, line 905:
Change
by
M.
cool.thank you, Mesa!
I've uploaded a new version (1.0.5 - see first post) that includes your translation!
A little bug is here, line 905:
Change
Code: Select all
languageFile = "language_XX.cfg"
Code: Select all
languageFile = "PBEdit_XX.cfg"
Re: PBEdit - a Canvas-based Texteditor
thanks again, Mesa! I totally overlook that.
My only way of testing the code under Linux is to run it under Virtualbox.
Unfortunately, scrolling or writing text rapidly is lagging really bad.
Can somebody with "real" Linux confirm that? Or does it run smoothly?
My only way of testing the code under Linux is to run it under Virtualbox.
Unfortunately, scrolling or writing text rapidly is lagging really bad.
Can somebody with "real" Linux confirm that? Or does it run smoothly?
- Kwai chang caine
- Always Here
- Posts: 5353
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: PBEdit - a Canvas-based Texteditor
Wonderfull professionnal look
Thanks for sharing
Thanks for sharing
The happiness is a road...
Not a destination
Not a destination
Re: PBEdit - a Canvas-based Texteditor
Works surprisingly well thanks for sharing. I hope you haven't abandoned it. Does your editor have word wrap?
Re: PBEdit - a Canvas-based Texteditor
Hi, mestnyi!mestnyi wrote:I hope you haven't abandoned it. Does your editor have word wrap?
No, its not abendoned but unfortunately wordwrap is not implemented yet.
I started doing so but quickly realized that it is really hard to make it work properly. (I should have thought about that feature much earlier )
Re: PBEdit - a Canvas-based Texteditor
Look for it, MK-Soft has solved it nicely,
maybe this will help you.
maybe this will help you.
地球上の平和
Re: PBEdit - a Canvas-based Texteditor
The word wrap "as such" is not the big problem. But calculating the line numer or get the correct character at mouse position X/Y, is (at leaast for me).
Then there are cases where you have a line continuation or folded code parts...
When i started this project I had a code editor in mind, so that feature never was on my agenda.
Then there are cases where you have a line continuation or folded code parts...
When i started this project I had a code editor in mind, so that feature never was on my agenda.
Re: PBEdit - a Canvas-based Texteditor
Yes, I also think it is unnecessary.
The effort is in no relation to the effect.
The effort is in no relation to the effect.
地球上の平和
Re: PBEdit - a Canvas-based Texteditor
Very nice job Mr.L.
There seems to be a bug with AutoComplete.
(running macOS Big Sur)
If I type:
Now, when I add a "C" to make:
Even worse, if I add a "D" to make:
Like I said, I'm on macOS Big Sur and it could very well be a Big Sur issue.
(as scrollbars are visually different than on former macOS versions.
Keep up the good work.
EDIT: Typos...
There seems to be a bug with AutoComplete.
(running macOS Big Sur)
If I type:
- Procedure
- Procedure
ProcedureC
ProcedureDLL
EndProcedure
ProcedureCDLL
ProcedureReturn
Now, when I add a "C" to make:
- ProcedureC
Even worse, if I add a "D" to make:
- ProcedureCD
Like I said, I'm on macOS Big Sur and it could very well be a Big Sur issue.
(as scrollbars are visually different than on former macOS versions.
Keep up the good work.
EDIT: Typos...
Last edited by fsw on Fri Dec 04, 2020 11:11 pm, edited 3 times in total.
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: PBEdit - a Canvas-based Texteditor
Thx for the reply, fsw!fsw wrote:There seems to be a bug with AutoComplete.
(running macOS Big Sur)
I'm looking into it. Maybe I have to create my own Listview for the AutoComplete list (already had that in mind some time ago). That would open up some nice extra features and eliminate some workarounds I had to come up with in the current version.
Last edited by Mr.L on Mon Dec 07, 2020 9:15 pm, edited 1 time in total.
Re: PBEdit - a Canvas-based Texteditor
Version 1.08 is online!
changed: the new AutoComplete list is drawn directly on the canvas (no separate Window and ListViewGadget anymore)
fixed: bug in Procedure Selection_Move that led to adding of blank lines and messed with the undo function
update
fixed: bug in display of the AutoComplete list
fixed: multicursor with overwrite-mode didn't work properly with multiple cursors set in same textline
Download
changed: the new AutoComplete list is drawn directly on the canvas (no separate Window and ListViewGadget anymore)
fixed: bug in Procedure Selection_Move that led to adding of blank lines and messed with the undo function
update
fixed: bug in display of the AutoComplete list
fixed: multicursor with overwrite-mode didn't work properly with multiple cursors set in same textline
Download
Re: PBEdit - a Canvas-based Texteditor
Hello Mr.L,
The Autocomplete ListView seems to work fine, thank you.
Keep up the good work
The Autocomplete ListView seems to work fine, thank you.
Keep up the good work
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: PBEdit - a Canvas-based Texteditor
good work and great editor.
- i miss the information wich pb version the commands are from, for autocomplete.
- great would be the possibilitie to import a projekt and search for usings of prozedures
- the important shortcuts from vb would be great.
- i miss the information wich pb version the commands are from, for autocomplete.
- great would be the possibilitie to import a projekt and search for usings of prozedures
- the important shortcuts from vb would be great.