Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/doc/en/html/macro/command/setdlgpos.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8409 - (show annotations) (download) (as text)
Mon Nov 25 12:57:56 2019 UTC (4 years, 6 months ago) by zmatsuo
File MIME type: text/html
File size: 1636 byte(s)
setdlgposの説明のデフォルト位置に「メインディスプレイの」を追加

- ダイアログがディスプレイからはみ出す場合の説明を追記
- OSのバージョンによって、「メイン」「プライマリ」と呼び方が変化している
- 念の為カッコで「プライマリ」も追加
- [Ttssh2-devel 4385]
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <title>setdlgpos</title>
7 <meta http-equiv="Content-Style-Type" content="text/css">
8 <link rel="stylesheet" href="../../style.css" type="text/css">
9 </head>
10
11 <body>
12
13
14 <h1>setdlgpos</h1>
15
16 <p>
17 Sets the position of dialog box.
18 </p>
19
20 <pre class="macro-syntax">
21 setdlgpos [&lt;x&gt; &lt;y&gt;]
22 </pre>
23
24 <h2>Remarks</h2>
25
26 <p>
27 Changes the initial position for dialog boxes opened by the "<a href="inputbox.html">inputbox</a>", "<a href="listbox.html">listbox</a>", "<a href="messagebox.html">messagebox</a>", "<a href="passwordbox.html">passwordbox</a>", "<a href="statusbox.html">statusbox</a>", "<a href="yesnobox.html">yesnobox</a>" commands and error dialogbox. If the status dialog box is displayed, the "setdlgpos" command also moves the dialog box.<br>
28 Set dialog box position to default in main(primary) display when no argument is given. (version 4.105 or later)<br>
29 &lt;x&gt; and &lt;y&gt; specify the position (x,y) in the screen coordinate.<br>
30 The origin (0,0) is upper left corner of the screen(primary display).<br>
31 Move into display, if dialog box position is outside display. (version 4.105 or later)
32 </p>
33
34 <h2>Example</h2>
35
36 <pre class="macro-example">
37 ; Message box at the upper left corner.
38 setdlgpos 0 0
39 messagebox 'Message' 'Title'
40
41 ; Open the status box.
42 setdlgpos 0 200
43 statusbox 'Message' 'Title'
44
45 ; Moves the status box.
46 for i 0 200
47 setdlgpos i 200
48 next
49 </pre>
50
51 </body>
52 </html>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26