Quote: (maybe add 2 pixels for the border, if ATSynedit shows the border)
Good Thinking..
Hey, I wonder for
LineHeight:=TextCharSize.y;
would it be better to do:
LineHeight:=TextCharSize.y+OptSpacingY;
Search found 13 matches
- 16.06.2024 11:18
- Forum: General - CudaText
- Topic: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
- Replies: 10
- Views: 11159
- 16.06.2024 11:13
- Forum: General - CudaText
- Topic: TAtSynEdit - Wrap Text, But Keep Tab Indent?
- Replies: 2
- Views: 6209
TAtSynEdit - Wrap Text, But Keep Tab Indent?
Hello,
Was Wondering, With "Wrapped" TAtSynEdit Text, for Example:
Is there a way to have the wrapped lines align with the tab, like above?
Especially when using a variable width font...
Was Wondering, With "Wrapped" TAtSynEdit Text, for Example:
Code: Select all
Descripton:{Tab}This is a test line that wraps, and
wraps some more...
Especially when using a variable width font...
- 16.06.2024 11:00
- Forum: General - CudaText
- Topic: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
- Replies: 10
- Views: 11159
Re: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
I did not understand the question. how to set the height of parent panel? use P.Y, and maybe add there LH (height of one line). Correct, My intention is to size AtSynEdit's Parent Panel, so AtSynEdit (aligned as alClient) can show all of it's text. I will give (P.Y + LH) a try. Thank You, Sincerely.
- 16.06.2024 10:23
- Forum: General - CudaText
- Topic: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
- Replies: 10
- Views: 11159
Re: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
One correction: CaretPosToClientPos must be called for position at the very end. to consider that last line is wrapped too. Pos: N = FEditor.Strings.Count-1; PosEnd = Point(FEditor.Strings.LinesLen[N], N); Thank you for the reply. I know my following procedure is not correct.. procedure TFMain.Adju...
- 16.06.2024 08:57
- Forum: General - CudaText
- Topic: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
- Replies: 10
- Views: 11159
Re: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
by main Alexey: 1. try to change Abs(Font.Height) to FEditor.TextCharSize.Y. 2. if idea 1 don't help: use FEditor.CaretPosToClientPos for text position (0, FEditor.Strings.Count-1). You will get coord of top-of-last-line. Add there FEditor.TextCharSize.Y. Idea 2 is best if user has interline gaps (...
- 16.06.2024 00:30
- Forum: General - CudaText
- Topic: TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
- Replies: 10
- Views: 11159
TAtSynEdit - Get Total Height in Pixels of All Wrapped Text
I have a TPanel, with a Child TAtSynEdit set to alClient I would like to adjust the TPanel height, just enough, to show all text in AtSynEdit, without any extra blank space at bottom. So, I need to figure out total height of TAtSynEdit Text, even if it's Wrapped... Here's what I have so far, but, no...
- 27.06.2022 02:56
- Forum: General - CudaText
- Topic: AtSynEdit - Example Macro Code
- Replies: 1
- Views: 605
AtSynEdit - Example Macro Code
Hello,
I've been learning how to use AtSynEdit, but have been really struggling with:
- Macro Record
- Macro Playback
I was wondering if someone could show some example code, with events etc..
(this could be a nice addition to AtSynEdit Demo's Folder, as well)
Thank you most sincerely..
I've been learning how to use AtSynEdit, but have been really struggling with:
- Macro Record
- Macro Playback
I was wondering if someone could show some example code, with events etc..
(this could be a nice addition to AtSynEdit Demo's Folder, as well)
Thank you most sincerely..
- 16.06.2022 05:52
- Forum: General - CudaText
- Topic: AtSynEdit - Set Text Selection BgColor, FgColor, FocusRect
- Replies: 1
- Views: 552
AtSynEdit - Set Text Selection BgColor, FgColor, FocusRect
Hi, With " SynEdit " I was able to Set the Text Selection Appearance, to something really "cool" looking: with SynEdit.SelectedColor do begin Background:=clMyPastelColor; Foreground:=clBlack; FrameColor:=clNavy; {Nice} FrameStyle:=slsDotted; {Even Nicer} end; This would give the ...
- 31.05.2022 02:26
- Forum: General - CudaText
- Topic: AtSynEdit - Sort Lines of Text
- Replies: 5
- Views: 958
I'm still new at all this.. I tried: Ed.DoCommand(cCommand_Sort_Asc,cInvokeInternal,''); I'm not fully understanding 2nd Parameter.. This TATEditorCommandInvoke cInvokeInternal, cInvokeHotkey, etc.. is probably? Use Hotkey method if one is available, or Invoke an internal method.. ? 3rd Parameter is...
- 31.05.2022 01:49
- Forum: General - CudaText
- Topic: AtSynEdit - Column, Row, and Position
- Replies: 2
- Views: 727