Recent

Author Topic: LazReport Find function in Preview  (Read 4954 times)

HGabor

  • New Member
  • *
  • Posts: 17
LazReport Find function in Preview
« on: September 05, 2012, 11:01:59 pm »
Hello,

In my application there are some print previews. I tried the Find function with the pbFind previewButton and ctrl/F too. It drops a window where I can type in the text I'd like to search for, but does nothing. Such a function would be fine, but not vital.

Because it doesn't work for me, I've hidden the pbFind button, but the ctrl/F option is still active. Is it a way to disable it?

Thanks for any help in advance

Gabor

HGabor

  • New Member
  • *
  • Posts: 17
Re: LazReport Find function in Preview
« Reply #1 on: September 06, 2012, 12:59:39 am »
A workaround.

In the fr_view.pas module of LazReport there is a comment that the FindText function is not yet implemented, so let's say it isn't a bug, that it does not work, but a feature.  :D


Line 912 is " else if Chr(Key) = 'F' then FindBtnClick(nil)  ".

If it is modified to " else if (Chr(Key) = 'F') and FindBtn.Visible then FindBtnClick(nil) " then Ctrl/F will work accordingly the visible state of the Find button, so the function can be disabled from the user.

Anyway, it still would be nice if the text search function could work.

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: LazReport Find function in Preview
« Reply #2 on: September 18, 2012, 06:52:54 pm »
It will work if someone implements TMetaFile (eg. using fpvectorial)

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: LazReport Find function in Preview
« Reply #3 on: September 18, 2012, 07:18:28 pm »
There is Windows-only metafile implementation inside of TAChart,
see tadrawerwmf.pas

 

TinyPortal © 2005-2018