Lazarus

Programming => Packages and Libraries => SynEdit => Topic started by: Edson on November 17, 2014, 05:23:43 pm

Title: SynEdit Scrollbar bug?
Post by: Edson 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.
Title: Re: SynEdit Scrollbar bug?
Post by: Martin_fr 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?
Title: Re: SynEdit Scrollbar bug?
Post by: Edson 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.
Title: Re: SynEdit Scrollbar bug?
Post by: Martin_fr 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.


Title: Re: SynEdit Scrollbar bug?
Post by: Edson 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.
Title: Re: SynEdit Scrollbar bug?
Post by: Martin_fr on November 17, 2014, 10:44:05 pm
Well please report a bug.

If possible include LCL/widgetset in the title. 

Title: Re: SynEdit Scrollbar bug?
Post by: Edson on November 22, 2014, 03:51:15 am
Submitted: 0027072

I hope it has been correctly reported. Mantis is something strange for me.
TinyPortal © 2005-2018