Recent

Author Topic: lzRichEdit: Windows/Linux rich text implementation  (Read 35190 times)

minesadorada

  • Hero Member
  • *****
  • Posts: 605
  • Retired
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #30 on: November 24, 2014, 04:09:13 pm »
Very nice component!  Thank you for coding this.
GPL Apps: Health MonitorRetro Ski Run
OnlinePackageManager Components: LazAutoUpdate, LongTimer, PoweredBy, ScrollText, PlaySound, CryptINI

mig-31

  • Sr. Member
  • ****
  • Posts: 278
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #31 on: November 24, 2014, 04:13:22 pm »
Nice component, but while GTK2 not Qt?
Lazarus 2.0.6 - CentOS 7.x, Mageia 7.1

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
    • havefunsoft.com
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #32 on: November 24, 2014, 04:35:57 pm »
Nice component, but while GTK2 not Qt?
Qt4Pas doesn't have all necessary classes converted.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #33 on: November 25, 2014, 01:53:49 am »
Added 2 more properties:

ScrollPoint
X :Integer
Reads and writes the X scrolling position.
Y :Integer
Reads and writes the Y scrolling position.

DefaultExtension
string

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #34 on: November 25, 2014, 07:36:25 pm »
Code: [Select]
lzRichEdit1.LoadFromFile(Odlg.FileName);to
Code: [Select]
lzRichEdit1.LoadFromFile(Utf8ToAnsi(Odlg.FileName)); Also in
Code: [Select]
procedure TCustomRichBox.LoadFromFile(AFileName: string);

......
......
(LowerCase(ExtractFileExt(AFileName)) = LowerCase(FDefaultExtension))
extension is always english

might be helpfull
« Last Edit: November 25, 2014, 07:55:41 pm by Never »
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #35 on: November 25, 2014, 10:06:11 pm »
Thanks.

Added 2 more methods:

GetZoomState
SetZoomState
« Last Edit: November 25, 2014, 10:11:33 pm by typo »

Cyrax

  • Hero Member
  • *****
  • Posts: 830
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #36 on: November 26, 2014, 03:21:03 am »
Are you using web hosted revision control system like github or something alike? I would love to see all source code changes in easily accessible form.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #37 on: November 26, 2014, 11:38:34 am »
Yes, but there the files are not updated. When it is OK I will provide a link to the SVN in the wiki.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
    • havefunsoft.com
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #38 on: November 26, 2014, 02:46:57 pm »
Added 2 more methods:

GetZoomState
SetZoomState
those are windows only, I presume?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #39 on: November 26, 2014, 06:10:45 pm »
Yes, some things work only on Windows. But there is no reason why not to implement this. I guess Windows users will be very happy to have those things working fine.

BTW, Linux developers are welcome to help on lzRichEdit.
« Last Edit: November 26, 2014, 06:29:18 pm by typo »

snorkel

  • Hero Member
  • *****
  • Posts: 810
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #40 on: November 26, 2014, 07:13:47 pm »
it would be nice to be able to save the rich content to a stream so it could easily be streamed over the network for like chat applications.
The other thing that would be nice is the ability to append a stream of rich formated data to another instance of the control again
for chat applications.
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 2.06 and FPC 3.0.4
OS: Windows 10 64 bit

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2497
    • havefunsoft.com
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #41 on: November 26, 2014, 08:05:31 pm »
it would be nice to be able to save the rich content to a stream so it could easily be streamed over the network for like chat applications.
The other thing that would be nice is the ability to append a stream of rich formated data to another instance of the control again
for chat applications.
Do the opposite - send the data in a format  that's better for the chat protocol, and just style it at the time you insert it to the control.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #42 on: November 26, 2014, 08:17:47 pm »
In fact this was one of the more popular tasks for a couple of years in Delphi community.

http://www.delphigroups.info/2/b7/322118.html

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #43 on: November 26, 2014, 08:50:56 pm »
@snorkel, if you have interest on having this code on lzRichEdit, please test that code and post the result. I am having problems on porting it to Lazarus, I am having a crazy error message.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: lzRichEdit: Windows/Linux rich text implementation
« Reply #44 on: November 26, 2014, 09:03:23 pm »
OK, solved. Probably it will be part of lzRichEdit.

 

TinyPortal © 2005-2018