Recent

Author Topic: [Solved] TMemo get clicked line  (Read 2161 times)

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
[Solved] TMemo get clicked line
« on: July 01, 2015, 03:26:09 pm »
I'm trying to extract which line was clicked in a TMemo, without using caret.

The TMemo is set to enabled false, as I only want to use it for displaying a "minimap" of a synedit, but make it clickable like the Sublime IDE.
« Last Edit: July 01, 2015, 08:10:58 pm by Trenatos »

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: TMemo get clicked line (Not with caret)
« Reply #1 on: July 01, 2015, 07:35:17 pm »
Show some screen shots so we can udnerstant you better.In any case try to set the readonly property instead of enabled and use the caret.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: TMemo get clicked line (Not with caret)
« Reply #2 on: July 01, 2015, 07:59:31 pm »
I did what you said, and used SynEdit.TopLine to set the scroll.

Happy share screenshots in a day or so

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: TMemo get clicked line (Not with caret)
« Reply #3 on: July 01, 2015, 08:02:05 pm »
if you solved your problem (I can't understand from your post) then no reason to post anything else.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: TMemo get clicked line (Not with caret)
« Reply #4 on: July 01, 2015, 08:10:40 pm »
Sorry, yes, using your solution I solved the problem.

 

TinyPortal © 2005-2018