Recent

Author Topic: TaTSynEdit: using it for an editor-repaint caret  (Read 1173 times)

SA.Blackmon

  • New Member
  • *
  • Posts: 37
  • Just an old retired guy practicing what he enjoys.
TaTSynEdit: using it for an editor-repaint caret
« on: March 30, 2021, 02:13:36 am »
I put a TaTSynEdit in a frame that I dynamically place in a TPanel.
I use TATTabs to swap the "shown" frame.

My issue is: when I change tabs, I lose the caret. The caret position persists in a property of the frame.

So, I know where I want the caret to be painted but I don't know how to paint it.

Tried to figure it out from the cudatext code but got thoroughly lost in the complexity.
« Last Edit: March 30, 2021, 05:07:52 pm by SA.Blackmon »
Thank you for your help,
Sherril

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: TaTSynEdit: using it for an editor
« Reply #1 on: March 30, 2021, 03:08:14 am »
I don't know ATSynEdit, but I would guess it is a focus issue.
When switching tabs, afterwards make sure focus goes to the correct editor?

Otherwise no idea

SA.Blackmon

  • New Member
  • *
  • Posts: 37
  • Just an old retired guy practicing what he enjoys.
[SOLVED] Re: TaTSynEdit: using it for an editor-caret repaint issue
« Reply #2 on: March 30, 2021, 04:54:49 pm »
Dear Martin_fr,

I love it when I feel like a dummy and my issue gets fixed.

That was exactly the problem.
« Last Edit: March 30, 2021, 05:07:27 pm by SA.Blackmon »
Thank you for your help,
Sherril

 

TinyPortal © 2005-2018