tvplanit: Improved dragging of columns in VpContactGrid

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6478 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-06-09 09:59:39 +00:00
parent ef8583487e
commit abf9796c82
2 changed files with 4 additions and 3 deletions

View File

@ -75,13 +75,14 @@ const
MaxEventDepth = 50; { the maximum number of side by side } MaxEventDepth = 50; { the maximum number of side by side }
{ events, which can be displayed in the } { events, which can be displayed in the }
{ DayView component. } { DayView component. }
ClickDelay : Integer = 500; { the number of milliseconds of delay for } ClickDelay: Integer = 500; { the number of milliseconds of delay for }
{ each event click in the TimeGrid } { each event click in the TimeGrid }
calDefHeight = 140; { popup calendar default height } calDefHeight = 140; { popup calendar default height }
calDefWidth = 200; { popup calendar default width } calDefWidth = 200; { popup calendar default width }
ExtraBarWidth = 2; { The extra, draggable area on either side } ExtraBarWidth = 2; { The extra, draggable area on either side }
{ of the Contact Grid's horizontal bars. } { of the Contact Grid's horizontal bars. }
CompareTimeEPS = 1.0 / (24*60*60*10); { Epsilon for time comparison, 0.1 sec } CompareTimeEPS = 0.1 * OneSecond; { Epsilon for time comparison, 0.1 sec }
// CompareTimeEPS = 1.0 / (24*60*60*10); { Epsilon for time comparison, 0.1 sec }
cmPerInch = 2.54; { 1 inch is 2.54 cm } cmPerInch = 2.54; { 1 inch is 2.54 cm }

View File

@ -724,7 +724,7 @@ begin
TVpContactGridOpener(FContactGrid).cgBarArray[BarCount].Rec := Rect( TVpContactGridOpener(FContactGrid).cgBarArray[BarCount].Rec := Rect(
BarPos - ExtraBarWidth, BarPos - ExtraBarWidth,
RealTop, RealTop,
BarPos - ExtraBarWidth + FContactGrid.BarWidth, BarPos + ExtraBarWidth + FContactGrid.BarWidth,
RealBottom RealBottom
); );
TVpContactGridOpener(FContactGrid).cgBarArray[BarCount].Index := BarCount; TVpContactGridOpener(FContactGrid).cgBarArray[BarCount].Index := BarCount;