ダイアログボックスの位置を設定する。
setdlgpos [<x> <y> [<position> [<offset x> <offset y>]]]
"inputbox", "listbox", "messagebox", "passwordbox", "statusbox", "yesnobox" コマンドで表示されるダイアログボックス、エラーダイアログ表示位置を位置を変更する。
また、ステータスダイアログボックスが表示されている場合、setdlgpos コマンドはそのダイアログボックスを移動させる。
ダイアログがディスプレイからはみ出す場合は、ディスプレイ内に移動される。(バージョン 4.105以降)
座標の単位はピクセル。
; 左上の隅にダイアログボックス setdlgpos 0 0 messagebox 'Message' 'Title' ; ステータスダイアログボックスを開く setdlgpos 0 200 statusbox 'Message' 'Title' ; ステータスダイアログボックスを移動 for i 0 200 setdlgpos i 200 next
setdlgpos 0 0 1 100 100 messagebox 'setdlgpos 0 0 1 100 100' 'top-left of the display' setdlgpos 0 0 2 (-100) 100 messagebox 'setdlgpos 0 0 2 -100 100' 'top-right of the display' setdlgpos 0 0 3 100 (-100) messagebox 'setdlgpos 0 0 3 100 -100' 'bottom-left of the display' setdlgpos 0 0 4 (-100) (-100) messagebox 'setdlgpos 0 0 4 -100 -100' 'bottom-right of the display' setdlgpos 0 0 5 messagebox 'setdlgpos 0 0 5 ' 'center of the display' setdlgpos 0 0 6 messagebox 'setdlgpos 0 0 6' 'top-left of the VT window' setdlgpos 0 0 7 messagebox 'setdlgpos 0 0 7' 'top-right of the VT window' setdlgpos 0 0 8 messagebox 'setdlgpos 0 0 8' 'bottom-left of the VT window' setdlgpos 0 0 9 messagebox 'setdlgpos 0 0 9' 'bottom-right of the VT window' setdlgpos 0 0 10 messagebox 'setdlgpos 0 0 10' 'center of the VT window'