[Module] EditorEx (Custom Editor Gadget)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: [Module] EditorEx (Custom Editor Gadget)

Post by davido »

@Thorsten1867,
Excellent!
Thank you. The cursor works fine now. :D
DE AA EB
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

Update:
  • Simplifications and optimizations
  • Automatic spell checking is now independent of syntax highlighting
  • Loading the hyphenation pattern activates hyphenation
  • Softhyphen overrides hyphenation of word
  • Adding a word (including color) activates syntax highlighting.
  • EnableAutoSpellCheck() enabled spell check as default for all gadgets
  • Right double click replaced by left double click (select word) & right click (correction suggestions)
  • Bugfix: SyntaxHighlighting of separated words
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

Bugfixes
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

Update:
  • Added: WrapText() - wrap saved text without loading it into the gadget before.
  • Reorganization and revision of drawing and scroll routines.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

Update:
  • List of suggested corrections: Button to add a word to the user dictionary.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Cyllceaux »

Line 2612: AddToUserDictionary not found, when #Enable_SpellChecking = #False

Line 4854: Hypernation not declared, when #Enable_Hyphenation = #False

Line 2293: List has no element when onyl:

Code: Select all

Define edtNotizInhalt=EditEx::Gadget(#PB_Any,x,y,280,100,EditEx::#AutoResize,windowMain)

Code: Select all

	#Enable_Hyphenation     = #False  ; Requires file with hyphenation patterns => LoadHyphenationPattern()
	#Enable_SpellChecking   = #False	; Requires file with dictionary           => LoadDictionary()
	#Enable_SyntaxHighlight = #False
	#Enable_UndoRedo        = #True 
Linebreak do not work anymore
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

Fixed

I hope I didn't miss anything.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Cyllceaux »

worked

thx :)
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Cyllceaux »

How can I get an event for a changing text?
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Cyllceaux »

line 1904/(and many more): #Event_Gadget not found
same lines (and many more): StrgEx() not found
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

Fixed :oops:
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Cyllceaux »

Thx :)
Bitblazer
Enthusiast
Enthusiast
Posts: 733
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Bitblazer »

I am trying to use this module in a project where i need to show lines with different colors. Is there a way to use individual colors for each line i add?

The reason is that i use different colors for a logging window. For example - severe errors have a bright red while informational messages use different levels of grey/blue.
webpage - discord chat links -> purebasic GPT4All
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

This is rather a task for ListEx.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] EditorEx (Custom Editor Gadget)

Post by Thorsten1867 »

Update:
  • ScrollBarGadget() replaced by drawing routine
  • Attribute #ScrollBar [#ScrollBar_Default/#ScrollBar_Frame/#ScrollBar_DragPoint]
  • SetColor() -> [#ScrollBar_FrontColor/#ScrollBar_BackColor/#ScrollBar_BorderColor/#ScrollBar_ButtonColor/#ScrollBar_ThumbColor]
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply