Small problem with Find in a button

I'm using a button which makes an automatic find :

@nofilenamequoting
Find IN="{sourcepath}" NAME="{dlgstring|Enter file search pattern}" CLEAR RECURSE SHOWRESULTS=output SIMPLE

When i use SHOWRESULTS=output, the ouput window appears on front when the results are found.

But if i use SHOWRESULTS=inline, the Find window appears in the task bar but is not put in front of my DOpus.. Is it a wanted behaviour ? i think it would be better to bring the Find command to front to allow user to see the result of his action

I understand what you are saying but if you are going to display the results in the Find Window, would it not be more logical to simply open the Find Window from your command button, where you can directly enter your search string and press enter.

If you leave the NAME field empty, but use your other options, then the find dialog will open and you can enter your search string. In this case I don't see the logic in opening a separate {dlgstring} and then the Find Window.

Oh yes, i had read the other topic about Find and said to myself : "i don't use the find dialog but i can make a nice button to make searches" ..

but in fact pressing Ctrl+F and typing the search does exactly what i wanted :slight_smile: no need for a button and a dialog .. you're right

But my idea still stays for maybe someone who will make a better use of a button : why "Find" isn't brought to top when it's opened this way ?

Most likely a small "bug". Even though opening the Find Window produces the same result, in your case, the fact you can direct output to it and it doesn't come to the front, to me at least, indicates that it is perhaps a behavioural bug.

Send in a bug report.[/quote]