Jump to content


dreel

Member Since 10 Feb 2009
Offline Last Active Jan 17 2011 12:31 AM
-----

Posts I've Made

In Topic: Cell.Hint and TextFitHint bugs

17 January 2011 - 12:32 AM

QUOTE (Boki (Berg) @ Dec 24 2010, 05:05 PM) <{POST_SNAPBACK}>
Hello,

I have attached a DCU file.

Best regards

Thanks. it works!

And what about TextFitHint ?

In Topic: Cell.Hint and TextFitHint bugs

24 December 2010 - 11:58 AM

QUOTE (Boki (Berg) @ Dec 22 2010, 10:28 PM) <{POST_SNAPBACK}>
Hello,

For first bug (Cell Hint) modify next procedure in NxCustomGrid.pas:

CODE
procedure TNxCustomGrid.ShowCellHint(ACol, ARow: Integer; HintText: WideString);
var
    HintRect: TRect;
  APoint: TPoint;
  HintLeft: Integer;
begin
  if not ParentFormActive(Self) then Exit;
  if not Application.ShowHint then Exit;

  RecreateHintWnd;

  FHintPosition := hpCellHint;
  HintRect := GetCellRect(ACol, ARow);
  case GridStyle of
    gsReport: HintLeft := HintRect.Left + Columns[ACol].Width;
    else HintLeft := HintRect.Left + Columns[ACol].SlideBounds.Width;
  end;
  if HintLeft > ClientWidth then HintLeft := ClientWidth; // <--------------- new line
  APoint := ClientToScreen(Point(HintLeft, HintRect.Top - 20));
  HintRect := CalcHintRect(FHintWindow, 250, HintText);
  OffsetRect(HintRect, APoint.X, APoint.Y);
  ActivateHint(FHintWindow, HintRect, HintText);
end;

As i see you don't provide sources for Delphi 7 version. I've only found DCUs.

In Topic: Cell.Hint and TextFitHint bugs

24 December 2010 - 11:56 AM

In first post top two images showing TextFitHint,
bottom images showing CellHint

In Topic: Cell.Hint and TextFitHint bugs

22 December 2010 - 09:34 AM

QUOTE (Boki (Berg) @ Dec 21 2010, 10:03 PM) <{POST_SNAPBACK}>
Hello,

Can you please send me a demo project (and source) to I see what can be done. Thank you - this will help.

Some situations may be fixed, but some will maybe be harder.

Best regards

Here the example source attached to the message.

In Topic: Cell.Hint and TextFitHint bugs

22 December 2010 - 09:00 AM

QUOTE (Boki (Berg) @ Dec 21 2010, 10:03 PM) <{POST_SNAPBACK}>
Hello,

Can you please send me a demo project (and source) to I see what can be done. Thank you - this will help.

Some situations may be fixed, but some will maybe be harder.

Best regards

Ok. I'll create it for you.