亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲va欧美va人人爽| 国产在线播放一区二区三区| 日日欢夜夜爽一区| 成人黄色在线网站| 91精品国产一区二区三区蜜臀| 国产性天天综合网| 亚洲成人av一区二区| 成人一级视频在线观看| 日韩精品一区国产麻豆| 亚洲一区二区四区蜜桃| 成人开心网精品视频| 日韩欧美一区电影| 亚洲自拍偷拍综合| 成人蜜臀av电影| 久久综合999| 日本视频中文字幕一区二区三区| 一本到一区二区三区| 久久精品一区二区| 免费人成在线不卡| 欧美日韩另类一区| 亚洲靠逼com| 成人av资源站| 国产精品免费av| 精品亚洲免费视频| 欧美一区二区三区在线观看| 亚洲品质自拍视频网站| 国产一区二区三区久久悠悠色av| 在线播放欧美女士性生活| 亚洲人成伊人成综合网小说| av亚洲精华国产精华精华| 久久麻豆一区二区| 久久se精品一区精品二区| 欧美电影一区二区| 亚洲国产精品久久不卡毛片 | 人人精品人人爱| 欧美日高清视频| 亚洲影院免费观看| 在线精品视频一区二区| 亚洲精选免费视频| 成+人+亚洲+综合天堂| 国产精品视频一二三区| www.综合网.com| 亚洲三级电影全部在线观看高清| 99久久亚洲一区二区三区青草| 亚洲欧美一区二区视频| 91国偷自产一区二区三区观看| 亚洲精品视频一区二区| 欧美怡红院视频| 青青草精品视频| 日韩免费电影一区| 国产精品亚洲а∨天堂免在线| 国产精品热久久久久夜色精品三区| 国产精品一区二区三区99| 中文字幕不卡的av| 94-欧美-setu| 天堂va蜜桃一区二区三区漫画版| 欧美男女性生活在线直播观看| 日韩精品国产精品| 久久久国产精品午夜一区ai换脸| 99综合电影在线视频| 亚洲国产精品一区二区久久| 日韩视频中午一区| 丰满白嫩尤物一区二区| 亚洲综合精品久久| 日韩一区二区在线看| 国产在线精品国自产拍免费| 日韩美女精品在线| 欧美肥妇bbw| 国产精品一区二区久久精品爱涩 | 亚洲综合色视频| 欧美一区2区视频在线观看| 国产一区二区三区蝌蚪| 亚洲五码中文字幕| 国产亚洲成年网址在线观看| 欧美日韩一区二区三区视频| 国产乱人伦偷精品视频免下载| 亚洲精品免费在线播放| 91精品国产欧美一区二区成人| 国产成人免费av在线| 亚洲成人av一区| 国产精品系列在线| 日韩美女天天操| 91在线视频免费91| 狠狠网亚洲精品| 亚洲国产精品精华液网站| 国产清纯白嫩初高生在线观看91 | 99精品在线观看视频| 免费成人你懂的| 亚洲欧美日韩中文字幕一区二区三区 | 色诱视频网站一区| 国产一区二区按摩在线观看| 亚洲一区二区三区三| 久久九九影视网| 精品视频一区二区不卡| 成人听书哪个软件好| 久久精品99国产精品日本| 亚洲图片自拍偷拍| 国产三级欧美三级| 精品噜噜噜噜久久久久久久久试看 | 中文字幕不卡一区| 欧美成人三级在线| 欧美日韩一区精品| 91国内精品野花午夜精品| 国产成人av电影在线| 免费观看久久久4p| 天堂va蜜桃一区二区三区| 亚洲精品视频在线观看免费| 中文字幕av一区 二区| 26uuu国产一区二区三区| 337p亚洲精品色噜噜| 欧美午夜片在线看| 欧美怡红院视频| 欧美三级电影在线观看| 91精彩视频在线| 在线国产亚洲欧美| 91久久精品一区二区| 色综合网站在线| 日本乱人伦aⅴ精品| 色综合一个色综合亚洲| 91伊人久久大香线蕉| www.日韩av| 99精品欧美一区二区蜜桃免费 | 国产资源在线一区| 韩国三级中文字幕hd久久精品| 午夜一区二区三区视频| 亚洲一区电影777| 视频一区二区中文字幕| 日韩综合在线视频| 美女www一区二区| 国产一区二区三区在线观看精品 | 免费成人在线观看视频| 韩国成人精品a∨在线观看| 国产一区二区中文字幕| 成人精品免费看| 色国产综合视频| 91精品免费在线观看| 精品美女被调教视频大全网站| 久久久精品国产免费观看同学| 欧美国产激情二区三区| 中文字幕一区在线观看视频| **欧美大码日韩| 亚洲一区在线免费观看| 日韩电影免费在线观看网站| 日本强好片久久久久久aaa| 另类的小说在线视频另类成人小视频在线 | 欧美一区二区三区精品| 精品久久久久久亚洲综合网 | 91精品国产91久久综合桃花| 精品国产成人系列| 一色屋精品亚洲香蕉网站| 午夜精品久久久久久久| 国产麻豆视频一区二区| 97se亚洲国产综合自在线观| 欧美精品三级日韩久久| 久久你懂得1024| 一区二区三区精密机械公司| 日韩国产精品91| 盗摄精品av一区二区三区| 欧美日本视频在线| 久久麻豆一区二区| 亚洲自拍偷拍图区| 国产精品一区二区三区四区| 欧美亚洲综合久久| 久久综合精品国产一区二区三区| 亚洲欧美一区二区三区国产精品 | 欧美mv日韩mv| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 夜夜嗨av一区二区三区四季av| 日本vs亚洲vs韩国一区三区二区| 波多野结衣精品在线| 日韩一区二区精品| 亚洲欧美电影一区二区| 国产自产视频一区二区三区| 欧美图区在线视频| 亚洲欧洲av在线| 国产美女一区二区三区| 欧美精品第1页| 亚洲欧美一区二区不卡| 国产精品自拍毛片| 制服丝袜亚洲精品中文字幕| 日韩理论电影院| 国产在线精品一区二区三区不卡 | 香蕉久久一区二区不卡无毒影院 | 一区二区三区精品在线| 北条麻妃国产九九精品视频| 久久网站最新地址| 另类专区欧美蜜桃臀第一页| 欧美性受xxxx黑人xyx性爽| 亚洲日本va午夜在线影院| 国产不卡在线视频| 久久久久国产精品厨房| 国内精品免费在线观看| 欧美大片一区二区| 免费观看成人av| 日韩欧美国产一二三区| 蜜桃视频在线一区| 欧美一区二区视频观看视频| 午夜久久久久久久久久一区二区| 欧美专区亚洲专区| 亚洲国产中文字幕在线视频综合 |