亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cha-dialogs.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      User Communication: Dialogs    </title>    <meta name="GENERATOR" content=    "Modular DocBook HTML Stylesheet Version 1.45">    <link rel="HOME" title="GTK+ / Gnome Application Development"    href="ggad.html">    <link rel="UP" title="Building a Gnome Application" href=     "build-app.html">    <link rel="PREVIOUS" title="Finishing Touches" href="z94.html">    <link rel="NEXT" title="Modal Dialogs" href=     "sec-modaldialogs.html">  </head>  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink=   "#840084" alink="#0000FF">    <div class="NAVHEADER">      <table width="100%" border="0" bgcolor="#ffffff" cellpadding=       "1" cellspacing="0">        <tr>          <th colspan="4" align="center">            <font color="#000000" size="2">GTK+ / Gnome Application            Development</font>          </th>        </tr>        <tr>          <td width="25%" bgcolor="#ffffff" align="left">            <a href="z94.html"><font color="#0000ff" size="2"><b>            &lt;&lt;&lt; Previous</b></font></a>          </td>          <td width="25%" colspan="2" bgcolor="#ffffff" align=           "center">            <font color="#0000ff" size="2"><b><a href="ggad.html">            <font color="#0000ff" size="2"><b>            Home</b></font></a></b></font>          </td>          <td width="25%" bgcolor="#ffffff" align="right">            <a href="sec-modaldialogs.html"><font color="#0000ff"            size="2"><b>Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>      </table>    </div>    <div class="CHAPTER">      <h1>        <a name="CHA-DIALOGS">User Communication: Dialogs</a>      </h1>      <div class="TOC">        <dl>          <dt>            <b>Table of Contents</b>          </dt>          <dt>            <a href="cha-dialogs.html#Z97">The <tt class=            "CLASSNAME">GnomeDialog</tt> Widget</a>          </dt>          <dt>            <a href="sec-modaldialogs.html">Modal Dialogs</a>          </dt>          <dt>            <a href="z101.html">A Dialog Example</a>          </dt>          <dt>            <a href="cha-dialogs-special.html">Special Dialog            Types</a>          </dt>          <dt>            <a href="sec-dialogs-convenience.html">Convenience            Routines</a>          </dt>        </dl>      </div>      <p>        Dialogs are a continuous annoyance in plain GTK+; every        time you want to tell the user anything, you have to create        a window, create some buttons, create a label, pack the        buttons and label into the window, set up callbacks,        remember to capture <span class="SYMBOL">        "delete_event"</span>, and so on. It's a pain. Gnome saves        you from this pain, with an easy-to-use general-purpose        dialog widget, and several subclasses of it that implement        common dialog types. Gnome also has easy functions for        using modal dialogs.      </p>      <div class="SECT1">        <h1 class="SECT1">          <a name="Z97">The <tt class="CLASSNAME">GnomeDialog</tt>          Widget</a>        </h1>        <p>          Since dialogs in plain GTK+ are painstakingly constructed          from scratch, there are at least as many ways to write a          dialog as there are programmers. The programmer must          decide where to place the dialog on the screen, how much          padding to have, whether to put a separator above the          buttons, what container to put the buttons in, what the          keyboard shortcuts are, and so on. The premise of <tt          class="CLASSNAME">GnomeDialog</tt> is that the programmer          should not have to care about these things; if they're          variable at all, the user should configure them the way          they want. From the programmer's perspective, dialogs          "just work."        </p>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z98">Creating a Dialog</a>          </h2>          <p>            A <tt class="CLASSNAME">GnomeDialog</tt> is easy to            create. Here's a summary of the basic steps, more            detail follows:          </p>          <ol type="1">            <li>              <p>                Read <a href="cha-dialogs-special.html">the section                called <i>Special Dialog Types</i></a> and decide                whether one of the special dialog subclasses is                appropriate. If so, skip the below steps and create                that subclass instead.              </p>            </li>            <li>              <p>                Create the widget with <tt class="FUNCTION">                gnome_dialog_new()</tt>. Pass this function the                title of the dialog (displayed by the window                manager) and the name of each button you'd like to                have.              </p>            </li>            <li>              <p>                Populate <span class="STRUCTNAME">                GNOME_DIALOG(dialog)-&gt;vbox</span> with the                contents of your dialog.              </p>            </li>            <li>              <p>                Plan how your dialog will work. You can connect to                the <span class="SYMBOL">"close"</span> or <span                class="SYMBOL">"clicked"</span> signals, as                appropriate. You can have the dialog hide or                destroy itself when closed. You can also have the                dialog automatically close when clicked, or handle                this yourself. There are a number of ways the user                can interact with a dialog, so it's important to be                sure the combination of settings you choose will                work no matter what the user does.              </p>            </li>          </ol>          <p>            To create a dialog, use <tt class="FUNCTION">            gnome_dialog_new()</tt>, shown in <a href=             "cha-dialogs.html#FL-DIALOGNEW">Figure 1</a>. The            argument list is a <span class="STRUCTNAME">            NULL</span>-terminated list of buttons to insert in the            dialog. For example, you might say:          </p>          <table border="0" bgcolor="#E0E0E0" width="100%">            <tr>              <td><pre class="PROGRAMLISTING">&#13;GtkWidget* dialog;dialog = gnome_dialog_new(_("My Dialog Title"),                          _("OK"),                          _("Cancel"),                          NULL);      </pre>              </td>            </tr>          </table>          <p>            This creates a dialog titled "My Dialog Title" with an            OK and a Cancel button; the strings are marked for            translation with the <tt class="FUNCTION">_()</tt>            macro. The OK button will be the leftmost button in the            dialog.          </p>          <div class="FIGURE">            <a name="FL-DIALOGNEW"></a>            <div class="FUNCSYNOPSIS">              <a name="FL-DIALOGNEW.SYNOPSIS"></a>              <table border="0" bgcolor="#E0E0E0" width="100%">                <tr>                  <td><pre class="FUNCSYNOPSISINFO">       #include &lt;libgnomeui/gnome-dialog.h&gt;      </pre>                  </td>                </tr>              </table>              <p>                <code><code class="FUNCDEF">GtkWidget* <tt class=                 "FUNCTION">gnome_dialog_new</tt></code>(const                gchar* <tt class="PARAMETER"><i>title</i></tt>, <tt                class="PARAMETER"><i>...</i></tt>);</code>              </p>            </div>            <p>              <b>Figure 1. <tt class="CLASSNAME">GnomeDialog</tt>              Constructor</b>            </p>          </div>          <p>            The <tt class="CLASSNAME">GnomeDialog</tt> API numbers            the buttons you add starting with 0; you use these            numbers to refer to the buttons later, since you don't            have a pointer to the automatically-created button            widgets. In this case, the OK button is button 0, and            the Cancel button is button 1. (Note that this is            standard Gnome practice---OK or Yes goes first, then            Cancel or No. In fact <tt class="FILENAME">            libgnomeui/gnome-uidefs.h</tt> contains the macros <tt            class="FUNCTION">GNOME_YES</tt>, <tt class="FUNCTION">            GNOME_OK</tt>, <tt class="FUNCTION">GNOME_NO</tt>, and            <tt class="FUNCTION">GNOME_CANCEL</tt> which represent            the dialog button numbers for these items in a            two-button dialog.)          </p>          <p>            The above example, which specifies buttons called "OK"            and "Cancel," is not quite correct for production code.            Gnome provides a set of "stock buttons" for common            button names. These ensure everyone uses "OK" instead            of "Ok" or "OK!"; they allow translators to translate            common strings only once; and they often insert icons            in the buttons, making them more attractive and            recognizable to users. You should always use stock            buttons if possible.          </p>          <p>            You can use stock buttons in <tt class="FUNCTION">            gnome_dialog_new()</tt>. Simply substitute the stock            button macros for the button names:          </p>          <table border="0" bgcolor="#E0E0E0" width="100%">            <tr>              <td><pre class="PROGRAMLISTING">&#13;dialog = gnome_dialog_new(_("My Dialog Title"),                          GNOME_STOCK_BUTTON_OK,                          GNOME_STOCK_BUTTON_CANCEL,                          NULL);      </pre>              </td>            </tr>          </table>          <p>            Gnome includes many stock buttons, stock menu items,            and stock pixmaps---it's a good idea to check these out            so you don't reinvent the wheel. There's a complete            list in <tt class="FILENAME">            libgnomeui/gnome-stock.h</tt>.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z99">Filling in the Dialog</a>          </h2>          <p>            After creating a dialog, you'll want to put something            inside. If you just want a label inside, probably you            should use <tt class="CLASSNAME">GnomeMessageBox</tt>            or one of the convenience routines (such as <tt class=             "FUNCTION">gnome_ok_dialog()</tt>) instead of            constructing the dialog manually. Otherwise, filling a            dialog is very simple:          </p>          <table border="0" bgcolor="#E0E0E0" width="100%">            <tr>              <td><pre class="PROGRAMLISTING">&#13;GtkWidget* button;/* ... create dialog as shown earlier ... */button = gtk_button_new_with_label(_("Push Me"));gtk_box_pack_start(GTK_BOX(GNOME_DIALOG(dialog)-&gt;vbox)),                   button,                    TRUE,                    TRUE,                   0);      </pre>              </td>            </tr>          </table>          <p>            Of course you can pack the contents of <span class=             "STRUCTNAME">dialog-&gt;vbox</span> using the packing            options of your choice. The above code is just an            example.          </p>          <p>            <a href="cha-dialogs.html#FIG-GNOMEDIALOG">Figure 2</a>            shows a dialog from the Gnumeric spreadsheet, with its            components labelled.          </p>          <div class="FIGURE">            <a name="FIG-GNOMEDIALOG"></a>            <p>              <img src="figures/gnumeric-dialog.png">            </p>            <p>              <b>Figure 2. A <tt class="CLASSNAME">GnomeDialog</tt>              from the Gnumeric spreadsheet</b>            </p>          </div>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z100">Handling <tt class="CLASSNAME">            GnomeDialog</tt> Signals</a>          </h2>          <p>            Now for the tricky part. You have to prepare yourself            to handle anything the user might do to your dialog.            Here's a brief list of possibilities; it's worth going            over the list whenever you create a dialog:          </p>          <ul>            <li>              <p>                Closing the dialog by pressing the Escape key              </p>            </li>            <li>              <p>                Closing the dialog by clicking the window manager's                close decoration              </p>            </li>            <li>              <p>                Clicking one of the dialog's buttons              </p>            </li>            <li>              <p>                Interacting with the contents of the dialog              </p>            </li>            <li>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清不卡一区二区| 久久久www免费人成精品| 亚洲男同1069视频| 色婷婷精品大视频在线蜜桃视频| 中文字幕乱码一区二区免费| 成人av动漫在线| 中文字幕巨乱亚洲| 91久久精品一区二区| 亚洲一区日韩精品中文字幕| 色综合一个色综合亚洲| 一区二区三区不卡在线观看| 欧美一三区三区四区免费在线看 | 久久久蜜桃精品| 国产成人精品免费看| 日韩毛片视频在线看| 色悠悠亚洲一区二区| 毛片av一区二区| 成人欧美一区二区三区视频网页| 在线观看一区二区精品视频| 另类小说色综合网站| 亚洲视频免费观看| 日韩视频免费观看高清完整版| 成人爽a毛片一区二区免费| 午夜久久久影院| 五月天激情小说综合| 国产精品大尺度| 精品国产伦理网| 欧美久久婷婷综合色| 一本色道久久综合亚洲aⅴ蜜桃 | av男人天堂一区| 国产一区二区三区久久久| 亚洲欧美精品午睡沙发| 久久久不卡网国产精品一区| 日韩一区二区免费视频| 欧美乱妇15p| 欧美在线你懂得| 91福利资源站| 色国产综合视频| 91久久香蕉国产日韩欧美9色| jlzzjlzz欧美大全| 99精品视频一区| 色综合一个色综合| 日本乱人伦aⅴ精品| 色欧美日韩亚洲| 欧美日韩精品综合在线| 在线电影国产精品| 日韩欧美国产电影| 久久久精品2019中文字幕之3| www久久精品| 久久久久久亚洲综合影院红桃| 久久综合99re88久久爱| 国产亚洲一区二区在线观看| 国产色产综合色产在线视频| 国产精品毛片a∨一区二区三区| 中文字幕色av一区二区三区| 国产一级精品在线| 99久久精品久久久久久清纯| 一本到一区二区三区| 555www色欧美视频| 国产欧美中文在线| 亚洲成人手机在线| 狠狠色丁香久久婷婷综| 91色在线porny| 日韩一区二区中文字幕| 国产欧美精品区一区二区三区| 亚洲自拍另类综合| 国产在线播放一区三区四| 色综合中文字幕| 亚洲国产电影在线观看| 国产成人午夜精品5599| 91在线丨porny丨国产| 日韩精品一区二区三区老鸭窝| 亚洲素人一区二区| 国内精品写真在线观看| 欧美午夜免费电影| 最新国产成人在线观看| 免费高清不卡av| 欧美日韩中文字幕一区二区| 久久精品一区四区| 日本视频中文字幕一区二区三区| 色综合 综合色| 亚洲欧洲av在线| 成人免费av资源| 中文字幕第一区综合| 日韩电影在线一区| 一本高清dvd不卡在线观看| 国产欧美一区二区精品忘忧草 | 色88888久久久久久影院野外| 国产欧美日韩综合| 精品在线亚洲视频| xf在线a精品一区二区视频网站| 五月综合激情网| 欧美卡1卡2卡| 日韩电影一二三区| 日韩西西人体444www| 免费成人在线网站| 精品国产免费人成在线观看| 久久国产精品色| 国产三级三级三级精品8ⅰ区| 国产一区二区三区观看| 欧美国产乱子伦| 一本到不卡精品视频在线观看| 亚洲欧美精品午睡沙发| 欧美无人高清视频在线观看| 天天影视网天天综合色在线播放| 日韩一区二区三区四区五区六区| 久久精品国产精品青草| 精品国产网站在线观看| av激情综合网| 奇米精品一区二区三区在线观看| 日韩免费福利电影在线观看| 国产激情精品久久久第一区二区| 中文字幕日本不卡| 欧美日韩高清在线| 国产成人午夜精品5599| 天天做天天摸天天爽国产一区| 久久久久97国产精华液好用吗| 972aa.com艺术欧美| 九色porny丨国产精品| 亚洲免费色视频| 精品国产伦一区二区三区免费 | 91在线云播放| 国产成人8x视频一区二区| 亚洲高清免费在线| 中文字幕第一页久久| 日韩一区二区麻豆国产| 色综合色综合色综合色综合色综合| 久久aⅴ国产欧美74aaa| 一区二区三区欧美在线观看| 国产午夜亚洲精品理论片色戒| 欧美久久久久免费| 一本大道综合伊人精品热热| 国产一区二区三区黄视频| 免费视频一区二区| 日本亚洲三级在线| 性做久久久久久免费观看| 日韩毛片视频在线看| 国产揄拍国内精品对白| 婷婷夜色潮精品综合在线| 午夜精品久久久久久久99水蜜桃 | 亚洲综合色噜噜狠狠| 国产精品久久网站| 中文字幕免费观看一区| 国产欧美一区二区三区鸳鸯浴 | 国产白丝精品91爽爽久久| 国产精品中文字幕日韩精品| 国产iv一区二区三区| 成人午夜视频在线观看| 国产成+人+日韩+欧美+亚洲| av激情综合网| 欧美日韩中文字幕一区| 日韩精品一区二区三区老鸭窝| 91精品国产综合久久精品图片 | 国产一区二区三区美女| 国产69精品久久777的优势| 成人美女视频在线观看| 一本大道久久a久久精品综合| 欧美伊人久久大香线蕉综合69 | 精品嫩草影院久久| 久久久综合精品| 一区二区在线看| 欧美丝袜丝nylons| 日韩欧美的一区二区| 精品国产乱码久久久久久图片| 国产精品三级视频| 亚洲成人免费在线| 成人av资源站| 欧美精品一区视频| 一区二区三区日本| 成人高清视频免费观看| 日韩一级在线观看| 亚洲午夜精品在线| 99综合电影在线视频| 精品国产青草久久久久福利| 一区二区三区产品免费精品久久75| 激情图区综合网| 欧美亚洲图片小说| 亚洲男同1069视频| 成人黄色小视频在线观看| 在线综合视频播放| 亚洲在线视频一区| 不卡av免费在线观看| 国产日本一区二区| 国产福利精品一区| 久久婷婷成人综合色| 日本不卡一二三| 在线播放视频一区| 亚洲成人av一区二区三区| 欧美专区亚洲专区| 午夜精品一区二区三区免费视频| 91浏览器入口在线观看| 亚洲视频狠狠干| 欧美日韩一区小说| 日韩不卡在线观看日韩不卡视频| 在线观看日韩av先锋影音电影院| 国产精品福利影院| 欧美视频日韩视频| 久久成人羞羞网站| 欧美激情一区二区三区四区| 成人一区二区三区在线观看 |