Page 3 of 7
Re: PBEdit - a Canvas-based Texteditor
Posted: Mon Sep 28, 2020 7:15 am
by Mr.L
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.
Re: PBEdit - a Canvas-based Texteditor
Posted: Mon Sep 28, 2020 11:50 am
by Saki
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
Re: PBEdit - a Canvas-based Texteditor
Posted: Mon Sep 28, 2020 1:43 pm
by Mesa
@Mr L
thank you, Mesa!
I've uploaded a new version (1.0.5 - see first post) that includes your translation!
cool.
A little bug is here, line 905:
Change
by
M.
Re: PBEdit - a Canvas-based Texteditor
Posted: Mon Sep 28, 2020 5:10 pm
by Mr.L
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?
Re: PBEdit - a Canvas-based Texteditor
Posted: Wed Oct 21, 2020 7:59 pm
by Kwai chang caine
Wonderfull professionnal look
Thanks for sharing
Re: PBEdit - a Canvas-based Texteditor
Posted: Tue Dec 01, 2020 4:44 am
by mestnyi
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
Posted: Wed Dec 02, 2020 2:04 pm
by Mr.L
mestnyi wrote:I hope you haven't abandoned it. Does your editor have word wrap?
Hi, mestnyi!
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
Posted: Wed Dec 02, 2020 2:37 pm
by Saki
Look for it, MK-Soft has solved it nicely,
maybe this will help you.
Re: PBEdit - a Canvas-based Texteditor
Posted: Wed Dec 02, 2020 3:05 pm
by Mr.L
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.
Re: PBEdit - a Canvas-based Texteditor
Posted: Wed Dec 02, 2020 3:23 pm
by Saki
Yes, I also think it is unnecessary.
The effort is in no relation to the effect.
Re: PBEdit - a Canvas-based Texteditor
Posted: Fri Dec 04, 2020 5:19 pm
by fsw
Very nice job Mr.L.
There seems to be a bug with AutoComplete.
(running macOS Big Sur)
If I type:
The AutoComplete window appears with a list containing:
- Procedure
ProcedureC
ProcedureDLL
EndProcedure
ProcedureCDLL
ProcedureReturn
and all is fine, as all six keywords are visible.
Now, when I add a "C" to make:
The list is reduced to 2 keywords, but the lower item in the list is covered by the horizontal scrollbar of that list.
Even worse, if I add a "D" to make:
The list is reduced to 1 keyword, but the keyword in the list is covered by the horizontal scrollbar of that list.
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...
Re: PBEdit - a Canvas-based Texteditor
Posted: Fri Dec 04, 2020 5:47 pm
by Mr.L
fsw wrote:There seems to be a bug with AutoComplete.
(running macOS Big Sur)
Thx for the reply, fsw!
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.
Re: PBEdit - a Canvas-based Texteditor
Posted: Mon Dec 07, 2020 9:13 pm
by Mr.L
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
Re: PBEdit - a Canvas-based Texteditor
Posted: Wed Dec 09, 2020 8:07 pm
by fsw
Hello Mr.L,
The Autocomplete ListView seems to work fine, thank you.
Keep up the good work
Re: PBEdit - a Canvas-based Texteditor
Posted: Fri Jan 01, 2021 11:48 pm
by True29
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.