Ticket #44169

SCPの上書き確認ダイアログ

Date d'ouverture: 2022-03-23 23:17 Dernière mise à jour: 2023-02-02 20:48

Rapporteur:
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
1
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

TTSSHのリモート->ローカルのSCP時、ローカル側に同名のファイルが有る場合に上書き確認のダイアログが出る。

  • 表示するアイコンがMB_ICONERRORとなっており、内容的に相応しくない。 MB_ICONWARNINGまたはMB_ICONQUESTION辺りの方が良いのではないか。
  • メッセージに含まれる (0) は不要。(関連: #44168)
  • ESCキーでSCPをキャンセル出来る方が良いと思う。

Ticket History (3/4 Histories)

2022-03-23 23:17 Updated by: doda
  • New Ticket "SCPの上書き確認ダイアログ" created
2023-01-10 12:47 Updated by: nmaya
Commentaire
  • 微調整なので、着手すれば終わるのでは
2023-02-02 20:48 Updated by: nmaya
  • Résolution Update from Aucun to Fixed
  • Details Updated
Commentaire

ESCキーでSCPをキャンセル出来る方が良いと思う。

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox

If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing ESC will no effect - unless an MB_OK button is present. If an MB_OK button is displayed and the user presses ESC, the return value will be IDOK.

  • キャンセルボタンがある ... ESC キーは IDCANCEL
  • キャンセルボタンがなく、MB_OK がない ... ESC キーはなにも起こらない ... MB_YESNO はコレ
  • MB_OK がある ... ESC キーは IDOK

のようです。

"overwrite it?" に対する MB_YESNO なので、「MB_YESNOCANCEL にする」はないと思います。

「MB_OKCANCEL にする」と質問に対する Yes/No とカバー範囲が微妙に違う気がしますが、「どうしても ESC を生かしたい」ならこれかな、と思います。

確認ダイアログはうっかり消えない方がいいと思うので、私はどちらかというと - な意見です。

Attachment File List

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion