Recent

Author Topic: RichEdit with toolbar incorporated component like DevExpress  (Read 734 times)

BSaidus

  • Sr. Member
  • ****
  • Posts: 374
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
RichEdit with toolbar incorporated component like DevExpress
« on: April 21, 2021, 06:53:24 pm »
Hello;
I wonder if there is a Richedit Component with a toolbar on it (all in one ) for lazarus/

Thank you.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

jamie

  • Hero Member
  • *****
  • Posts: 4447
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #1 on: April 21, 2021, 11:53:43 pm »
Are you lazy?
 >:(
The only true wisdom is knowing you know nothing

AL

  • Full Member
  • ***
  • Posts: 225
Laz 2.1.0, fpc 3.3.1, Win10
Laz 2.1.0, fpc 3.3.1, Mac OS Mojave running on VMWare
Laz 2.1.0  fpc 3.3.1 Ubuntu 20.04

lucamar

  • Hero Member
  • *****
  • Posts: 3881
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

BSaidus

  • Sr. Member
  • ****
  • Posts: 374
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #4 on: April 22, 2021, 10:42:33 am »
Are you lazy?
 >:(
Yep, but if there is, why doing it 2nd time ;)

@AL
Yes, RichMemo I use it.

@lucamar
It does not include it,
I'll try to do it with simple actions.


Thanks.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

lucamar

  • Hero Member
  • *****
  • Posts: 3881
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #5 on: April 22, 2021, 11:30:13 am »
Shouldn't be too difficult to implement, using either a panel or a frame to group both controls ;)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

dbannon

  • Hero Member
  • *****
  • Posts: 1373
    • tomboy-ng, a rewrite of the classic Tomboy
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #6 on: April 22, 2021, 12:53:46 pm »
You could also consider KMemo, part of KControls if cross platform is important.  But you will need to build your own tool bar there too !

http://wiki.freepascal.org/KControls/KmemoNotes

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

wp

  • Hero Member
  • *****
  • Posts: 8401
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #7 on: April 22, 2021, 01:43:50 pm »
What's the problem with plain-old TToolbar and a few buttons with mostly one-liner code calling the corresponding RichMemo method?
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

fred

  • Full Member
  • ***
  • Posts: 190
Started with OmegaSoft Pascal on OS-9/68k , now Lazarus 2.0.8 / FPC 3.0.4 on Windows 7

AL

  • Full Member
  • ***
  • Posts: 225
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #9 on: April 22, 2021, 05:00:25 pm »
Sorry this image from the Wiki lead me to think it did have a tool bar
Laz 2.1.0, fpc 3.3.1, Win10
Laz 2.1.0, fpc 3.3.1, Mac OS Mojave running on VMWare
Laz 2.1.0  fpc 3.3.1 Ubuntu 20.04

lucamar

  • Hero Member
  • *****
  • Posts: 3881
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #10 on: April 23, 2021, 12:11:09 am »
What's the problem with plain-old TToolbar and a few buttons with mostly one-liner code calling the corresponding RichMemo method?

Nothing, which is why I suggested it (though with less detail, true). Only he wants a kind of "combined" single control (like, say, TLabeledEdit), which is why I suggest using a panel or a frame to "join" both, the richedit control and a toolbar/coolbar. :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

dbannon

  • Hero Member
  • *****
  • Posts: 1373
    • tomboy-ng, a rewrite of the classic Tomboy
Re: RichEdit with toolbar incorporated component like DevExpress
« Reply #11 on: April 23, 2021, 10:10:58 am »
There would little point in having the 'Richness' apply to all the text at the same time, so you need to be able to, for example, when user clicks bold, apply the bold attribute to currently selected test, or if nothing selected, set an attribute that subsequent text follows.  But it gets a bit complicated when you consider that there are a number of attributes, when you turn bold on, the italic, highlight, underline etc attributes must not change.  So, its not dead easy by any means, not hard but does require some code.

And people like bulleted text, hyper links .....

Every use has a somewhat different set of needs so a ready to use, all coded up toolbar would probably not be very practical, it would 'almost' do 'most' people's job but be quite hard to bridge that final gap.

Qt5 and MacOS does not have a very complete RichMemo by the way, works well on GTK2 and (I believe) Windows.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

 

TinyPortal © 2005-2018