It is currently Sat Aug 24, 2019 2:22 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
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: 10524
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: 862
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: 10524
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: 862
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: 769
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: 862
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: 862
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: 105
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: 862
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: 105
works for me :D

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

thx


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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