It is currently Tue Mar 09, 2021 9:53 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Mon Sep 28, 2020 7:15 am 
Offline
User
User

Joined: Sun Oct 09, 2011 7:39 am
Posts: 47
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Mon Sep 28, 2020 11:50 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Apr 05, 2020 11:28 am
Posts: 518
Location: Pandora
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

_________________
地球上の平和


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Mon Sep 28, 2020 1:43 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Feb 24, 2012 10:19 am
Posts: 208
@Mr L
Quote:
thank you, Mesa!
I've uploaded a new version (1.0.5 - see first post) that includes your translation!

cool. :D

A little bug is here, line 905:
Change
Code:
languageFile = "language_XX.cfg"

by
Code:
languageFile = "PBEdit_XX.cfg"


M.


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Mon Sep 28, 2020 5:10 pm 
Offline
User
User

Joined: Sun Oct 09, 2011 7:39 am
Posts: 47
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Wed Oct 21, 2020 7:59 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4876
Location: Lyon - France
Wonderfull professionnal look :shock:
Thanks for sharing 8)

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Tue Dec 01, 2020 4:44 am 
Offline
Addict
Addict

Joined: Mon Nov 25, 2013 6:41 am
Posts: 845
Works surprisingly well thanks for sharing. I hope you haven't abandoned it. Does your editor have word wrap?


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Wed Dec 02, 2020 2:04 pm 
Offline
User
User

Joined: Sun Oct 09, 2011 7:39 am
Posts: 47
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 :oops: )


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Wed Dec 02, 2020 2:37 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Apr 05, 2020 11:28 am
Posts: 518
Location: Pandora
Look for it, MK-Soft has solved it nicely,
maybe this will help you.

_________________
地球上の平和


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Wed Dec 02, 2020 3:05 pm 
Offline
User
User

Joined: Sun Oct 09, 2011 7:39 am
Posts: 47
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Wed Dec 02, 2020 3:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Apr 05, 2020 11:28 am
Posts: 518
Location: Pandora
Yes, I also think it is unnecessary.
The effort is in no relation to the effect.

_________________
地球上の平和


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Fri Dec 04, 2020 5:19 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1488
Location: North by Northwest
Very nice job Mr.L.

There seems to be a bug with AutoComplete.
(running macOS Big Sur)

If I type:
    Procedure

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:
    ProcedureC

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:
    ProcedureCD

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...

_________________

I am to provide the public with beneficial shocks.
Alfred Hitshock


Last edited by fsw on Fri Dec 04, 2020 11:11 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Fri Dec 04, 2020 5:47 pm 
Offline
User
User

Joined: Sun Oct 09, 2011 7:39 am
Posts: 47
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.


Last edited by Mr.L on Mon Dec 07, 2020 9:15 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Mon Dec 07, 2020 9:13 pm 
Offline
User
User

Joined: Sun Oct 09, 2011 7:39 am
Posts: 47
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Wed Dec 09, 2020 8:07 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1488
Location: North by Northwest
Hello Mr.L,
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


Top
 Profile  
Reply with quote  
 Post subject: Re: PBEdit - a Canvas-based Texteditor
PostPosted: Fri Jan 01, 2021 11:48 pm 
Offline
User
User

Joined: Sun Feb 03, 2013 1:50 am
Posts: 64
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye