-
Dim K
- PowerBuilder
- Saturday, 25 October 2025 05:46 PM UTC
Hi everyone,
I’m trying to build a search filter similar to the Ctrl + F feature in apps like Chrome
![]()
I created a non-visual object that initializes data such as the DataWindow that i want to search and the parent window.
Then, I export the DataWindow data as JSON and search the JSON string to find the matching line and column, returning the column name and row number.
Everything works fine, but I have one issue:
I want the search event to trigger while typing, just like in other applications.
(The JSON export happens only once, when the filter window opens.)
The problem is that I can’t find any event that fires properly while typing in a SingleLineEdit control.
I’ve tried key, modified, ItemChanged and several pbm_ events none of them work as I need.
The only event that works is using the Other event, but it causes a strange issue:
every time I press a key, the input language switches to English automatically.
Has anyone faced this before or found a workaround?
I’d prefer not to use a dummy DataWindow just to capture typing.
Thanks in advance!
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.