Recent

Author Topic: SynEdit Scrollbar bug?  (Read 4028 times)

Edson

  • Hero Member
  • *****
  • Posts: 1135
SynEdit Scrollbar bug?
« on: November 17, 2014, 05:23:43 pm »
If you put a SynEdit control on a empty Form.

Then add this code to the OnShow event:

procedure TForm1.FormShow(Sender: TObject);
begin
  SYnEdit1.ScrollBars:=ssVertical;
end;

Execute, and then move the mouse over the last line of the SynEdit. The pointer is wrong.

Is this considered a bug?

I don't know if this happens on other systems or versions.
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6902
  • Debugger - SynEdit - and more
    • wiki
Re: SynEdit Scrollbar bug?
« Reply #1 on: November 17, 2014, 05:38:08 pm »
I just tried, the mouse pointer is the "text" mouse pointer. That is on all, including the last lines.

What results do you get?

Can you attach a minimum sample project?

What OS?

Edson

  • Hero Member
  • *****
  • Posts: 1135
Re: SynEdit Scrollbar bug?
« Reply #2 on: November 17, 2014, 05:55:28 pm »
I get the default mouse pointer only on the last line (Where the horizontal Scrollbar would be).

Attached the code.
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6902
  • Debugger - SynEdit - and more
    • wiki
Re: SynEdit Scrollbar bug?
« Reply #3 on: November 17, 2014, 07:41:37 pm »
Works fine on my Win Vista.

I suspect the underlying LCL. SynEdit only shows/hides the scrollbar. Also SynEdit set the cursor to the LCL, and the LCL/widgetset decides where to show which cursor.

Have you tried other components? Set a custom cursor to a scrollbox, or grid, and force it to show only one scrollbar.



Edson

  • Hero Member
  • *****
  • Posts: 1135
Re: SynEdit Scrollbar bug?
« Reply #4 on: November 17, 2014, 09:11:20 pm »
Tested with a TMemo. It work's correctly. The cursor have the text mode until the last line.

Tested on a WinXP virtualized and it works correctly. Just on my Windows 7 Starter, it fails.
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6902
  • Debugger - SynEdit - and more
    • wiki
Re: SynEdit Scrollbar bug?
« Reply #5 on: November 17, 2014, 10:44:05 pm »
Well please report a bug.

If possible include LCL/widgetset in the title. 


Edson

  • Hero Member
  • *****
  • Posts: 1135
Re: SynEdit Scrollbar bug?
« Reply #6 on: November 22, 2014, 03:51:15 am »
Submitted: 0027072

I hope it has been correctly reported. Mantis is something strange for me.
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

 

TinyPortal © 2005-2018