API version 4

- ‐

zoomUp

ページ表示の倍率を一段階大きくします。

ツールバーの「拡大」ボタン操作と同じ動作になります。

呼出形式一覧

呼出形式

説明

void zoomUp()

ページ表示の倍率を一段階大きくします。

戻り値一覧

戻り値

説明

void

なし

例外

なし

関連項目

zoomFactor プロパティ

wholenormalSizezoomDown メソッド



使用例 CRSダウンロード

Form formPrintPreview_button {
   x = 0; y = 0; width = 800; height = 600;
   PrintPreview preview {
           x = 8; y = 32; width = 784; height = 560; visible = false;

           # サムネイル表示の最大サイズを300にする
           # (本サンプルでは用紙サイズは縦長なので、縦幅が300になる)
           maxThumbnailSize = 300;
   }
   Button buttonLoad {
           x = 8; y = 8; width = 520; height = 24; title = "読み込み";
           function onTouch(e) {
                   # document プロパティにセットしたデータを表示する
                   ^.preview.document = ^.printform1.printDocument();
                   ^.preview.visible = true;
                   visible = false;
           }
   }
   Button buttonThumbnail {
           x = 24; y = 8; width = 24; height = 24; title = "サ";
           # 左のサムネイル欄の表示・非表示を切り替える
           function onTouch(e) { ^.preview.thumbnails = !^.preview.thumbnails; }
   }
   Button buttonZoomUp {
           x = 56; y = 8; width = 24; height = 24; title = "+";
           # 表示倍率を拡大する
           function onTouch(e) { ^.preview.zoomUp(); }
   }
   Button buttonZoomDown {
           x = 88; y = 8; width = 24; height = 24; title = "-";
           # 表示倍率を縮小する
           function onTouch(e) { ^.preview.zoomDown(); }
   }
   Button buttonNormalSize {
           x = 120; y = 8; width = 24; height = 24; title = "元";
           # 表示倍率を等倍にする
           function onTouch(e) { ^.preview.normalSize(); }
   }
   Button buttonWhole {
           x = 152; y = 8; width = 24; height = 24; title = "合";
           # ちょうどページ全体が表示できる表示倍率にする
           function onTouch(e) { ^.preview.whole(); }
   }
   NumberEdit numberZoomFactor {
           x = 184; y = 8; width = 64; height = 24; value = 100;
           minimum = 10; maximum = 800;
           # 表示倍率を直接設定する
           function onTouch(e) { ^.preview.zoomFactor = value / 100.0; }
   }
   Button buttonFirst {
           x = 264; y = 8; width = 24; height = 24; title = "頭";
           # 先頭ページを表示する
           function onTouch(e) { ^.preview.first(); }
   }
   Button buttonPrev {
           x = 296; y = 8; width = 24; height = 24; title = "前";
           # 前のページを表示する
           function onTouch(e) { ^.preview.prev(); }
   }
   Button buttonNext {
           x = 328; y = 8; width = 24; height = 24; title = "次";
           # 次のページを表示する
           function onTouch(e) { ^.preview.next(); }
   }
   Button buttonLast {
           x = 360; y = 8; width = 24; height = 24; title = "末";
           # 最終ページを表示する
           function onTouch(e) { ^.preview.last(); }
   }
   NumberEdit numberValue {
           x = 392; y = 8; width = 48; height = 24; value = 0; minimum = 0;
           # 表示ページを直接設定する(先頭ページ=0)
           function onTouch(e) { ^.preview.value = value; }
   }
   Button buttonPrint {
           x = 456; y = 8; width = 24; height = 24; title = "印";
           # プリンターへの印刷を行う
           function onTouch(e) { ^.preview.printDialog(); }
   }
   Button buttonToolBar {
           x = 504; y = 8; width = 24; height = 24; title = "ツ";
           # ツールバーの表示・非表示を切り替える
           function onTouch(e) { ^.preview.toolBar = !^.preview.toolBar; }
   }

   # 印刷サンプル
   PrintForm printform1 {
           visible = false;
           x = 16; y = 80; width = 256; height = 362;
           pageCount = 5;
           TextField textfield1 {
                   x = 16; y = 64; width = 224; height = 32;
                   horizontalAlign = ALIGN_CENTER;
                   value="PrintForm出力サンプル";
           }
           TextField textfield2 {
                   x = 32; y = 128; width = 192; height = 128;
                   horizontalAlign = ALIGN_CENTER;
                   var f = font; f.size = 80; font = f;
           }
           function onPageChange(e) {
                   textfield2.value = e.page;
           }
   }
}