You are here: PSPad forum > English discussion forum > "Search / Replace in Files..." dialog blocks PSPad

"Search / Replace in Files..." dialog blocks PSPad

#1 "Search / Replace in Files..." dialog blocks PSPad

Posted by: damax | Date: 2019-10-09 07:53 | IP: IP Logged

I don't know if this should belong to the bug-report-section but:

I am extensively using the "Search / Replace in Files..." feature at the moment. My problem is that this dialog is modal, i.e. when is is open, PSPad behind it does not react to mouse clicks any more. That is a pity, because at the moment I have to search in files, then would need to click into the search result to open that file, then copy/paste code from the editor and then search for something else using "Search / Replace in Files..." again.

What I have to do at the moment is to close the "Search..."-dialog EVERY TIME I found something, then re-open it again sad smiley And again sad smiley And again sad smiley

Would it be possible to make that dialog "topmost" only, without it blocking PSPad? That'd be great.

Options: Reply | Quote | Up ^


#2 Re: "Search / Replace in Files..." dialog blocks PSPad

Posted by: pspad | Date: 2019-10-09 19:01 | IP: IP Logged

After search/replace finishes, you have full search result, you can click as many times you need, open and edit files.
You don't need to search/replace after each change in one file.

Options: Reply | Quote | Up ^


#3 Re: "Search / Replace in Files..." dialog blocks PSPad

Posted by: damax | Date: 2019-10-09 20:21 | IP: IP Logged

Thanks for the answer. Maybe I didn't explain it well enough: when the search is finished, I cannot click anything in PSPad as long as the dialog is open. I have to close the search-dialog first. That's the problem. I can capture a video tomorrow to show the behaviour live.

Edited 1 time(s). Last edit at 2019-10-09 20:22 by damax.

Options: Reply | Quote | Up ^


#4 Re: "Search / Replace in Files..." dialog blocks PSPad

Posted by: pspad | Date: 2019-10-10 04:24 | IP: IP Logged

I understand. Close dialog means press ESC key, open dialo means press another shortcut if you assign it to Search in files action in program settings / KeyMap.
It means press 2 keys on keyboard for close and open.

For me it's faster than take mouse and click on the dialog, cause dialog is Top most window.

Options: Reply | Quote | Up ^


#5 Re: "Search / Replace in Files..." dialog blocks PSPad

Posted by: damax | Date: 2019-10-10 06:56 | IP: IP Logged

Thanks for the info with the keyboard-shortcut, I hadn't thought of that yet.

But: I believe there is a difference between a "modal" dialog (which blocks the windows underneath as the Search-Dialog does) and a "topmost" dialog, which just stays on top but does still allow the program underneath to react.

I don't know in which language PSPad is written, but in C#, you would first set the form's "TopMost" property to true and then the difference is:

form.Show(); //opens the dialog "topmost"

or

form.ShowDialog(); //opens the dialog "modal"

I wrote you a little example in C#:

blog.todamax.net (just the .exe)
blog.todamax.net (the whole source code)

I hope this makes things a little clearer.

Options: Reply | Quote | Up ^


#6 Re: "Search / Replace in Files..." dialog blocks PSPad

Posted by: pspad | Date: 2019-10-10 07:20 | IP: IP Logged

I have no problem to make this dialog Top most instead of modal. I will test it.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2019 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR