Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

<Findtext> Text value in custom Search Bar

edited March 2016 in General
Hi,

I have my own custom print previewer. Within the previewer I have a
search bar which I add to a panel using:


private
FSearchPreview: TppCustomSearchPreview;

...

FSearchPreview.CreateControls(MySearchPanel)




Within the search bar there is a field to enter the text. It has the
default text of:



... already entered.


The users need to remove this text before they can start a search.

I was wondering if any of the following are possible:

1) Is it easy for me to change the way this operates / have a custom one
of my own, or...

2) Is it easy for you to change in your next release so that once a user
clicks into this textbox, it automatically removes the existing
entry so the user doesn't have to backspace it out before
typing in their text, or...

3) Is it easy for you to change in your next release so that once a user
clicks into this textbox, it automatically highlights / selects the
existing entry so when they type it automatically removes the previous
entry, or...

4) Is there another way that I can have this text removed / change it's
behavior?


Thanks & Regards

Adam.

Comments

  • edited March 2016
    Hi Adam,

    Thanks for the feedback. We will consider changing the behavior of this
    control for a later release.

    Currently you can use the Report.TextSearchSettings.DefaultString
    property to customize the initial search text. Setting this property to
    a blank string should give you the effect you are after.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.