Font size
-
- Site Admin
- Posts: 17602
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
See Demos\Delphi\Editors\Editor 2\ demo. It shows how to implement editing operations without RichViewActions.
Keys: ApplyStyleConversion method and OnStyleConversion event.
How to modify this demo to add a command increasing font size by 1 point:
1) Add a new constant
TEXT_SIZEPLUS1 = 9;
2) Add a button calling rve.ApplyStyleConversion(TEXT_SIZEPLUS1);
3) In TForm1.rveStyleConversion, in the case statement, add
Keys: ApplyStyleConversion method and OnStyleConversion event.
How to modify this demo to add a command increasing font size by 1 point:
1) Add a new constant
TEXT_SIZEPLUS1 = 9;
2) Add a button calling rve.ApplyStyleConversion(TEXT_SIZEPLUS1);
3) In TForm1.rveStyleConversion, in the case statement, add
Code: Select all
TEXT_SIZEPLUS1:
FontInfo.Size := FontInfo.Size+1;