It is currently Wed Nov 20, 2019 12:29 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Wed Dec 05, 2018 7:33 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10525
Location: Beyond the pale...
A few bugs I'm afraid.

Hit 'enter' in the middle of a line and then hit backspace a couple of times. Doesn't work the way it should.

Cursor to the end of a line and insert a couple of characters. Sometimes it works fine, other times the first character is prepended to the next line and the second character is added elsewhere!

Undo doesn't seem to work unless I am missing something?

PB 5.70 LTSx64 beta 3.

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Wed Dec 05, 2018 10:17 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 964
Location: Germany
Apparently the invisible control characters for the line break caused the problems.
I hope it works better now.

An Undo is created after pressing the Space key for the previous word.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Thu Dec 06, 2018 10:32 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10525
Location: Beyond the pale...
Yes, better! :)

However, cursor to the middle of a line, hit return and then backspace. An additional space is inserted. Hit return twice, 2 spaces inserted!

Still can't get undo/redo to work in any 'sensible' way. Seems to undo one action and no more.

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget) [Beta]
PostPosted: Sun Dec 09, 2018 9:07 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 964
Location: Germany
Code:
[09/12/18] Scroll and drawing routines completely revised & flashing cursor & mouse wheel & Shortcuts added & Bugfixes

Please test!

Here is a list of the currently available shortcuts:
Code:
; Home         - Move cursor to start of row
; End          - Move cursor to end of row
; Shft-Del     - Cut & copy selected text to clipboard
; Shft-Insert  - Paste clipboard at cursor position
; Crtl-A       - Select all
; Crtl-C       - Copy selected text to clipboard
; Crtl-D       - Delete selected text
; Crtl-V       - Paste clipboard at cursor position
; Crtl-X       - Cut & copy selected text to clipboard
; Ctrl-Z       - Perform Undo
; Ctrl-End     - Move the cursor to the end of the last row
; Ctrl-Down    - Move the cursor to the beginning of the next paragraph
; Ctrl-Home    - Move the cursor to the beginning of the first row
; Crtl-Insert  - Copy selected text to clipboard
; Crtl-Left    - Move the cursor to the beginning of the previous word
; Crtl-Minus   - Insert at cursor position a 'Soft-Hyphen'
; Crtl-Right   - Move the cursor to the beginning of the next word.
; Crtl-Up      - Move the cursor to the beginning of the previous paragraph.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget) [Beta]
PostPosted: Mon Dec 10, 2018 1:03 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Nov 25, 2013 6:41 am
Posts: 794
invalid memory access
3125 line
Code:
Edit()\Text\Space  = Font()\Char(" ")


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget) [Beta]
PostPosted: Tue Dec 11, 2018 6:53 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 964
Location: Germany
Code:
[11/12/18] Fixed fundamental problem in selection & Bugfixes

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget) [Beta]
PostPosted: Wed Dec 12, 2018 11:26 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 964
Location: Germany
Code:
[12/12/18] Automatic spell checking & Bugfixes


I have tried to implement this as resource-efficiently as possible.

On the one hand, a check is only carried out if there is an empty or punctuation character and on the other hand, each word (even if there are several gadgets) is only checked once against the dictionary until the program is finished.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget) [Beta]
PostPosted: Mon Apr 01, 2019 5:42 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 145
How about a DPI-Version? :wink:


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Thu Apr 04, 2019 6:36 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 964
Location: Germany
Update:
  • Modules completely revised (selection/cursor handling)
  • DPI - compliant

Possibly there are still hidden problems with DPI that I haven't discovered yet.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Mon Apr 08, 2019 3:00 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 145
works for me :D

OH... Line 5259... Why CompilerElseIf?

thx


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Sun Sep 01, 2019 8:57 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1693
Location: Uttoxeter, UK
@Thorsten1867,
I downloaded the latest version. On Windows 10 it looks fine.
However, I noticed a minor problem on my Macbook:
On a new line I entered 4
The cursor appeared to be 1 pixel after the character: 4|
Upon entering another 4 the cursor was now on the last pixel of the last 4
After a few entries the line looked: 444444|4

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Thu Oct 03, 2019 10:16 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 964
Location: Germany
After the cursor caused some trouble again and again, I now follow a new approach and have completely reworked the module.
Instead of splitting the text into lines using wordwrap, I now work with "virtual" lines, i.e. these are only one position with a certain length in the text string.
In addition, the text is no longer drawn line by line, but word by word, which allows a seamless integration of WordWarp, hyphenation and syntax highlighting.
After I stumbled across the "Damerau-Levenshtein-Distance" some time ago, there are now suggestions for correcting misspelled words.

Update:
  • New: Completely revised with a new approach to text handling
  • Added: Correction suggestions for spell-checking (right click on wrong (red) words)
  • Added: Right douple click: spell-checking of the word and, if necessary, correction suggestions
  • Added: CountItems()
  • Bugfix: SetText()

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Thu Oct 03, 2019 11:20 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Nov 25, 2013 6:41 am
Posts: 794
this does not work in mac os


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Thu Oct 03, 2019 11:45 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2045
Location: Germany
There is a small bug in the InputHandler

Change Line 2888
Code:
    If FindMapElement(EditEx(), Str(GNum))
     
      If EditEx()\Flags & #ReadOnly = #False



P.S.
I change BackColor...
Line 4459
Code:
          ;EditEx()\Color\Back          = BlendColor_(OSX_NSColorToRGB(CocoaMessage(0, 0, "NSColor textBackgroundColor")), $FFFFFF, 90)
          EditEx()\Color\Back          = BlendColor_(OSX_NSColorToRGB(CocoaMessage(0, 0, "NSColor textBackgroundColor")), $FFFFFF, 97)

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] EditorEx (Custom Editor Gadget)
PostPosted: Thu Oct 03, 2019 1:15 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 964
Location: Germany
Bug fixed

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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