Search Box doesn't close when Lister is open with Search Box

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
HPA
Junior Member
Junior Member
Posts: 26
Joined: 2006-11-02, 21:02 UTC

Search Box doesn't close when Lister is open with Search Box

Post by *HPA »

When opening the search dialog in TC and searching for some text, will result in a number of files found.
When I select one of these files and press F3, then this file will be opened in the Lister.
Now I open the search dialog in the Lister for searching another string (Ctrl-F), and I keep it open without pressing OK or Cancel button.
Now switching back to TC with the open search dialog (Alt-Tab).

The search dialog cannot be closed by pressing Esc, Cancel or 'X' icon!

And strange effect appear when clicking one of the search results, the line selected disappears.

Only after closing the search dialog in the lister, will the search dialog in TC close. TC pops to the front of the listerwindow I just closed the searchbox.

____________________
HPA
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

can confirm that :!:
Last edited by Sir_SiLvA on 2006-11-06, 11:48 UTC, edited 1 time in total.
Hoecker sie sind raus!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Confirmed. Interesting find!
And strange effect appear when clicking one of the search results, the line selected disappears.
This i cannot see.
I switched to Linux, bye and thanks for all the fish!
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

and it gets even stranger:
do as HPA writes then open another search result with f3 do a STRG+F and try to close the first STRG+F with Esc/X - it doesnt work :!:
Hoecker sie sind raus!
User avatar
HPA
Junior Member
Junior Member
Posts: 26
Joined: 2006-11-02, 21:02 UTC

Post by *HPA »

2SanskritFritz
And strange effect appear when clicking one of the search results, the line selected disappears.
This i cannot see.
This effect appears after I have pressed the Cancel button.
If I then click on one of the lines in the Search Results this line becomes blanc.


2Sir_SiLvA

I'm using xp pro sp2 dutch - tc7pb1
Search for: "*.c;*.h;*.cpp;*.txt"
Find text: "for(int r=1;"

________
hpa
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

SanskritFritz wrote:Confirmed. Interesting find!
And strange effect appear when clicking one of the search results, the line selected disappears.
This i cannot see.
But I can confirm that one too :!:
do as AHP said and then return to search results - dbl click an entry and click on another entry - voilá gone :D

Continued: then ALT+TAB to your Browser ie and then back and ALL entrys are gone :!:
Last edited by Sir_SiLvA on 2006-11-06, 11:55 UTC, edited 1 time in total.
Hoecker sie sind raus!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

This effect appears after I have pressed the Cancel button.
Woa, true! Nice :-)
I switched to Linux, bye and thanks for all the fish!
User avatar
HPA
Junior Member
Junior Member
Posts: 26
Joined: 2006-11-02, 21:02 UTC

Post by *HPA »

Searching for some text in the file isn't necessarily needed.

Just searching for a file is enough to replicate the error.
(eg. Search for: *.cpp)
________
hpa
User avatar
HPA
Junior Member
Junior Member
Posts: 26
Joined: 2006-11-02, 21:02 UTC

Post by *HPA »

The otherway around the same thing happens.

View a file in TC with F3, file will be opened in the lister.
Open the search dialog in the lister, Ctrl-F.
Go back to TC and open search dialog, Alt-F7.
Go back to the lister and the search dialog cannot be closed.
__________
hpa
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a known limitation of Windows which cannot be avoided. The only solution is to use a separate viewer instead of internal.
Author of Total Commander
https://www.ghisler.com
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

and what about the strange find-result-listbox?

a) start a search no matter what u search as long as u get some files u can view with f3
b) f3 a file u like and press STRG+F
c) Alt+Tab back to TC and DOUBLE-Click any Filename u like
d - version 1) now use Cursor-Down/-Up Keys => Entrys are becoming invisible
d - version 2) instead of using Cursor-keys click on a Search entry -> files disappear
e) Doublick for the second time (or use enter) you get the Error-Message "No item selected!"
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

d - version 1) now use Cursor-Down/-Up Keys => Entrys are becoming invisible
d - version 2) instead of using Cursor-keys click on a Search entry -> files disappear
Confirmed! Weird indeed.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is related. While a modal dialog box is open in any part of totalcmd.exe, several functions which are handled in the main message loop will not work (because these functions are replaced by the message loop of the search dialog).
Author of Total Commander
https://www.ghisler.com
samot
Junior Member
Junior Member
Posts: 56
Joined: 2003-02-21, 11:53 UTC
Location: Koblenz, Germany
Contact:

Post by *samot »

Is this the same problem as above?

- Open File A in the Lister
- search for a string that is not in the file (f.e "xxx" )
- do not close the "Not found" message
- open another file in the lister
-> you can't use ESC to close the second lister (until you close the "Not found" in the first lister session

Btw:
maybe you could place an invisible cancel-button (1*1 Pixel, TabStop = false, BackColor = White, Cancel = True) somewhere in the lister, so that you don't have to check windows message queue manual for an ESC-Keystroke
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Using TC7.50, you can define

Code: Select all

%COMMANDER_PATH%\TOTALCMD.EXE /S=L
as external Viewer.

This should solve the problem. :)

Regards
Holger
Post Reply