You've already forked lazarus-ccr
mbColorLib: All HSV/HSL controls have a property for MaxHue/MaxSaturation/MaxValue (MaxLuminance). Some refactoring avoiding duplicate storage of H, S, L (V) in the complex pickers.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5540 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -93,13 +93,14 @@ end;
|
||||
|
||||
destructor TmbBasicPicker.Destroy;
|
||||
begin
|
||||
//HideHintWindow;
|
||||
FBufferBmp.Free;
|
||||
inherited;
|
||||
end;
|
||||
|
||||
procedure TmbBasicPicker.CMHintShow(var Message: TCMHintShow);
|
||||
var
|
||||
cp: TPoint;
|
||||
hp: TPoint;
|
||||
begin
|
||||
if GetColorUnderCursor <> clNone then
|
||||
with TCMHintShow(Message) do
|
||||
@ -111,10 +112,11 @@ begin
|
||||
else
|
||||
begin
|
||||
cp := HintInfo^.CursorPos;
|
||||
hp := GetHintPos(cp.X, cp.Y);
|
||||
HintInfo^.ReshowTimeout := 0; // must be zero!
|
||||
HintInfo^.HideTimeout := Application.HintHidePause;
|
||||
HintInfo^.HintStr := GetHintStr(cp.X, cp.Y);
|
||||
HintInfo^.HintPos := ClientToScreen(GetHintPos(cp.X, cp.Y));
|
||||
HintInfo^.HintPos := ClientToScreen(Point(hp.X + 16, hp.Y));
|
||||
HintInfo^.CursorRect := Rect(cp.X, cp.Y, cp.X+1, cp.Y+1);
|
||||
Result := 0; // 0 means: show hint
|
||||
end;
|
||||
|
Reference in New Issue
Block a user