Tomáš Gregorovič wrote:
Martin Smat napsal(a):
Tomáš Gregorovič wrote:
Hi,
I have improved popupmenu in source editor. It's now also shown when
clicking the notebook page tab. Therefore I had to add published
property to PopupMenu to LCL component TNoteBook.
Next I have resolved bug with setting the breakpoints by right mouse
click on the gutter (No.: 0001313). The OnGutterClick event of
TSynEdit is now called only when left clicking.
tombo
I think the bug with setting the breakpoints by right click on the
gutter was fixed long time ago. At least I cannot reproduce it now.
Or was it again reinvented?
Martin.
I have latest svn update of lazarus and this problem is not fixed,
although in v0.9.10 beta is. In SynEdit.pp on line 2271 is this code:
{$IFDEF SYN_LAZARUS}
if (X < fGutterWidth) then begin
Include(fStateFlags, sfPossibleGutterClick);
DoOnGutterClick(X, Y);
end;
Therefore the breakpoint is set on left and also right button click.
tombo
Yes, you are right. Now the right click inserts the breakpoint. Someone
should apply your patch.
The previous patch was done on line 2462 in method MouseUp but now the
command DoOnGutterClick is inside {$IFNDEF SYN_LAZARUS} and this command
was added into the method MouseDown but without the condition for
(Button = mbLeft)
Martin.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives