Recent

Author Topic: synedit gutter issues  (Read 785 times)

aducom

  • Full Member
  • ***
  • Posts: 162
    • http://www.aducom.com
synedit gutter issues
« on: September 27, 2024, 08:38:27 pm »
I'm migrating an application from lazarus 2.2 into 3.4. I run into a number of issues. One of them is that the synedit component lost it's gutter parts. I can add gutter parts, but only SynGutterLineNumber appears. How do I add other gutter elements? I mean marks,changes etc.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11827
  • Debugger - SynEdit - and more
    • wiki
Re: synedit gutter issues
« Reply #1 on: September 27, 2024, 08:46:47 pm »
What code to you use?

If the SynEdit is on the form in the designer then you can add gutters there.

Otherwise something like
Code: Pascal  [Select][+][-]
  1. TFooGutterPart.create(SynEdit.Gutter.PartList); // or RightGutter

That automatically adds it. It will also be owned (i.e. freed) by the edit.

aducom

  • Full Member
  • ***
  • Posts: 162
    • http://www.aducom.com
Re: synedit gutter issues
« Reply #2 on: September 27, 2024, 09:57:28 pm »
Thank you. You can simply add gutters with the property editor. But I can only add a line number part. The other types are no available, unless I overlook something. How to add a change gutter, a gutter for breakpoints, folding etc.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11827
  • Debugger - SynEdit - and more
    • wiki
Re: synedit gutter issues
« Reply #3 on: September 27, 2024, 10:06:03 pm »
You do have the "Editing SynEdit1.Parts" window open ? (from the ... button in gutter.parts)?

Below the "Add" button it says "Line Numbers" => that is a drop down. So when you click it you should get a list and be able to chose.
Whatever you have selected, will be added the next time you press "add".

aducom

  • Full Member
  • ***
  • Posts: 162
    • http://www.aducom.com
Re: synedit gutter issues
« Reply #4 on: September 29, 2024, 05:09:42 pm »
Totally overlooked... Thank you very much.

 

TinyPortal © 2005-2018