Ticket #31049

マルチモニタ環境でのstatusboxの表示位置

Date d'ouverture: 2013-03-27 18:22 Dernière mise à jour: 2013-03-27 22:43

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

Détails

マルチモニタ環境で以下のマクロを実行している時、

do
	gettime time "%Y/%m/%d %H:%M:%S"
	statusbox time "Time"
	pause 1
loop
表示している statusbox をサブモニタへマウスで移動すると、 表示が更新された時にメインモニタの中央に statusbox が移動する。 もしかすると座標が負の値になった時のみかも。(未確認)

Ticket History (3/5 Histories)

2013-03-27 18:22 Updated by: doda
  • New Ticket "マルチモニタ環境でのstatusboxの表示位置" created
2013-03-27 20:25 Updated by: (del#1144)
Commentaire

テキストが更新されたら、そのテキストの長さに合わせて CStatDlg::Relocation の中でウィンドウサイズの再計算と MoveWindow をしてますね。

新規じゃなくて更新の場合は MoveWindow しないほうが使い勝手がよいですか?

2013-03-27 20:59 Updated by: (del#1144)
Commentaire

よく見たら -100 以下のときにSetWindowPos()のところですね。

「マルチディスプレイの場合には、最も左から100以上はみ出している」の条件をとらなきゃいけないですね。

2013-03-27 22:06 Updated by: (del#1144)
2013-03-27 22:43 Updated by: (del#1144)
  • Résolution Update from Aucun to Fixed
  • État Update from Ouvert to Atteints
  • Ticket Close date is changed to 2013-03-27 22:43
Commentaire

初期値が -1000 のため、ほかの box コマンドでも負の座標を持つディスプレイがあると表示位置がずれる問題があった。

あまりよくはないが -10000 に変更

Attachment File List

No attachments

Modifier

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