FTP connection failed - move error dialog to top

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

FTP connection failed - move error dialog to top

Post by *MarcinW »

For message box: "Connection lost, reconnect?", please add MB_SETFOREGROUND flag.

I often initialize large FTP transfers, switch to another application and work with it. If connection gets lost, I don't know about it until I switch back to Total Commander. Moving error message box to top would be very helpful.

Regards
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

One can use some script to bring specific windows with text/caption to foreground.

BTW I hate when any program captures focus, especially when I'm typing something or browse directories because such program can catch e.g. Enter keypress and do something wrong.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

Yes, you are right. I also hate when some dialog moves unexpectedly to the top and catches keys that I press, for example in a text editor. This can be dangerous in general.

However, in this case, even if message box will catch Enter, nothing dangerous will happen - the only consequence will be reconnecting to the FTP server.

Moreover, Total Commander already uses MB_SETFOREGROUND flag in some cases, for example with strings 69, 195, 1202, and 1635 (numbers from language files). And also for background FTP transfers, error message box gets MB_SETFOREGROUND flag.

Regards
Post Reply