Page 1 of 1
FTP connection failed - move error dialog to top
Posted: 2013-06-05, 16:33 UTC
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
Posted: 2013-06-05, 16:40 UTC
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.
Posted: 2013-06-05, 16:59 UTC
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