Recent

Author Topic: How about an external WordWrapper/Justifier component for SynEdit?  (Read 8761 times)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: How about an external WordWrapper/Justifier component for SynEdit?
« Reply #15 on: September 07, 2014, 02:48:44 pm »
  I also use TIpHtmlPanel in various places to display help, instructions and tips for the user.

I use this little cosmetic static text for this:

http://forum.lazarus.freepascal.org/index.php/topic,21448.0.html
Mind you, back when I was a professional developer we had our own THTMLLabel that accepted anchors, underline/bold/italics (and which accepted left, right and full justification).  I miss that, and it looks like TMiniStaticText closes that gap nicely...

can't understand a thing but this seems promising http://www.tegi-stuff.de/doku.php?id=tqzhtml end up there from here http://www.quickzip.org/tqzmh2.html. Haven't looked closely yet to see what it supports though.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: How about an external WordWrapper/Justifier component for SynEdit?
« Reply #16 on: September 07, 2014, 03:33:02 pm »
@Taazz, @Typo:  Thanks for your suggestions, but as I say I'm now using TipHTMLPanel and am happy enough with that.  Got a frame for it (that incorporates code from one of the iphtmlpanel examples), takes a simple .html string and displays that.  Apologies for the impression I was still searching...

Quote
can't understand a thing but this seems promising http://www.tegi-stuff.de/doku.php?id=tqzhtml end up there from here http://www.quickzip.org/tqzmh2.html. Haven't looked closely yet to see what it supports though.
I had a quick look (there's an american flag in top right that shows english version of page).  Tightly integrated to the VCL, and the editor uses TRichEdit (not that I need the editor).  Shouldn't be too hard to port, but definitely looks like a project worth undertaking by someone at some stage (not that I'm volunteering :))...
« Last Edit: September 07, 2014, 03:35:46 pm by Mike.Cornflake »
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: How about an external WordWrapper/Justifier component for SynEdit?
« Reply #17 on: September 18, 2014, 02:47:47 pm »
Thanks for this.  I veered away from that for no other reason than it's in a dll.  For aesthetic reasons I prefer code only solutions for most items (client side dlls for connecting to a server I don't have code for is about the only exception).

I have used a DLL (or SO for Linux) because hyphenation needs it. It is from NHunspell project, GPL/LGPL/MPL licensed and, mainly, works fine for any language. See here: http://www.ushuaia.pl/hyphen/?ln=en

Just get the hyphenation dictionary for your language in OpenOffice.org, (You can edit the dictionary file too if it does not fit your needs.)

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: How about an external WordWrapper/Justifier component for SynEdit?
« Reply #18 on: September 18, 2014, 07:02:27 pm »
@Typo   Going back to the original topic subject.   I still don't have an answer, but I've just noticed there's a relevant bounty.  Looks like you're not the only one chasing wordwrap in that syn edit...

http://wiki.freepascal.org/Bounties#SynEdit_word-wrap
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

 

TinyPortal © 2005-2018