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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tnw-tut-5.html

?? TinyWidget文檔教程
?? HTML
?? 第 1 頁 / 共 3 頁
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>The TinyWidgets Tutorial: The Widgets</TITLE> <LINK HREF="tnw-tut-6.html" REL=next> <LINK HREF="tnw-tut-4.html" REL=previous> <LINK HREF="tnw-tut.html#toc5" REL=contents></HEAD><BODY><A HREF="tnw-tut-6.html">Next</A><A HREF="tnw-tut-4.html">Previous</A><A HREF="tnw-tut.html#toc5">Contents</A><HR><H2><A NAME="s5">5. The Widgets</A></H2><H2><A NAME="TN_WINDOW"></A> <A NAME="ss5.1">5.1 TN_WINDOW</A></H2><P><P><H3>Introduction</H3><P>This is the Window widget. For every application you will need atleast one window. All other widgets can be added to a Window widget. The parent for the window widget must be the widget returned by <I>tnAppInitialize</I>. <P><H3>Specifications</H3><P>A Window can take the following optional properties in the call to <I>tnCreateWidget</I>.<UL><LI>TN_BGCOLOR : Background color for the window (defaults to grey).</LI><LI>TN_CAPTION : The window title. The default window title is "Window".</LI></UL><P>Examples:<P>A window specification with a window title "My App"<P><BLOCKQUOTE><CODE><HR><PRE>window1 = tnCreateWidget(TN_WINDOW,main_widget,50,50,TN_HEIGHT,200,TN_WIDTH,200,TN_CAPTION,"My App",TN_END);</PRE><HR></CODE></BLOCKQUOTE><P><H3>Callbacks</H3><P>The following callbacks can be specified when calling <I>tnRegisterCallBack</I> for a window.<UL><LI> CLICKED : Event occurs when user clicks on the window.</LI><LI> CLOSED : Event occurs when user clicks on the close button of the window. If the user wishes to terminate his application with the closing of a particular window, he must call <A HREF="tnw-tut-3.html#tnEndApp">tnEndApp</A> in this callback.</LI></UL><P><H3>Utility Functions</H3><P>The following utility functions have been provided to manipulate the properties of the window<P><BLOCKQUOTE><CODE><HR><PRE>tnGetClickedPos(TN_WIDGET *window, int *x, int *y)</PRE><HR></CODE></BLOCKQUOTE>Description : Returns the x and y co-ordinates where the last clicked event occured on the window. The co-ordinates are relative to the upper left corner of the window.<P><BLOCKQUOTE><CODE><HR><PRE>tnGetWindowTitle(TN_WIDGET *window, char *title)</PRE><HR></CODE></BLOCKQUOTE>Returns : The currently set title of the window.<P><BLOCKQUOTE><CODE><HR><PRE>tnSetWindowTitle(TN_WIDGET *window, char *title)</PRE><HR></CODE></BLOCKQUOTE>Description : Sets the window title as specified.<P><P><H2><A NAME="TN_BUTTON"></A> <A NAME="ss5.2">5.2 TN_BUTTON</A></H2><P><P><H3>Introduction</H3><P>This is the Push Button widget. It can be placed inside a window widget. The push button supports either a text caption or a pixmap as its face.<P><H3>Specifications</H3><P>By default a button has a caption which is set to "Button".The following properties can be specified optionally for a button while calling <I>tnCreateWidget</I><UL><LI>TN_PIXMAP   : Set to TN_TRUE if pixmap on the button is to be specified.</LI><LI>TN_CAPTION  : Specifies the caption to be used when TN_PIXMAP is not set.</LI><LI>TN_FILENAME : Specifies the pixmap filename if TN_PIXMAP is set.</LI></UL>Examples:<P>A  button specification with pixmap file "/usr/share/pixmaps/foo.xpm"<P><BLOCKQUOTE><CODE><HR><PRE>mybutton=tnCreateWidget(TN_BUTTON,mywindow,10,10,TN_HEIGHT,50,TN_WIDTH,50,                        TN_PIXMAP,TN_TRUE,                        TN_FILENAME,"/usr/share/pixmaps/foo.xpm",                        TN_END);                        </PRE><HR></CODE></BLOCKQUOTE><P>A button with default values and a caption "TinyWidgets"<BLOCKQUOTE><CODE><HR><PRE>mybutton=tnCreateWidget(TN_BUTTON,mywindow,10,10,                        TN_CAPTION,"TinyWidgets",                        TN_END);</PRE><HR></CODE></BLOCKQUOTE><P><P><H3>Callbacks</H3><P>The following callbacks can be specified while calling <I>tnRegisterCallBack</I> for a button.<UL><LI>CLICKED : Event occurs when user clicks and releases the button.</LI></UL><P><H3>Utility Functions</H3><P>The following utility functions can be used for a button to access and change its properties.<BLOCKQUOTE><CODE><HR><PRE>int tnGetButtonPressed(TN_WIDGET *widget)</PRE><HR></CODE></BLOCKQUOTE>Description: Get the button number for the last CLICKED event on the button.<P>Returns: A mask containing set bits for number of mouse buttons which were involved in the clicked event.<BLOCKQUOTE><CODE><HR><PRE>int tnSetButtonPixmap(TN_WIDGET *widget,char *filename)</PRE><HR></CODE></BLOCKQUOTE>Description: Sets pixmap for the face of a button.<P>Returns: 1 on success, -1 on failure.<BLOCKQUOTE><CODE><HR><PRE>int tnRemoveButtonPixmap(TN_WIDGET *widget)</PRE><HR></CODE></BLOCKQUOTE>Description: Removes a pixmap on the face of the button and sets empty caption.<P>Returns: 1 on success, -1 on failure.<BLOCKQUOTE><CODE><HR><PRE>int tnSetButtonCaption(TN_WIDGET *widget,char *caption)</PRE><HR></CODE></BLOCKQUOTE>Description: Sets a caption on the face of a button.<P>Returns: 1 on success, 0 if a pixmap already present on button, -1 on failure.<BLOCKQUOTE><CODE><HR><PRE>int tnGetButtonCaption(TN_WIDGET *widget,char *caption)</PRE><HR></CODE></BLOCKQUOTE>Description: Copies the caption of the button into the string pointed by <I>caption</I><P>Returns: 1 on success, -1 on failure.<BLOCKQUOTE><CODE><HR><PRE>TN_HASPIXMAP(TN_WIDGET *widget)</PRE><HR></CODE></BLOCKQUOTE>Description: This is a macro that returns 1 if the face of the button is a pixmap , 0 otherwise.<P>Returns: 1 if face has a pixmap, 0 otherwise.<H2><A NAME="TN_LABEL"></A> <A NAME="ss5.3">5.3 TN_LABEL</A></H2><P>This is the static label widget. It provides the facility of adding static text labels to a window widget. The label supports various fonts,font sizes and colors. By default the label is black colored and automatically resizes itself according to the font size.<H3>Specifications</H3><P>By default a label has a caption which is set to "Label".The following properties can be specified optionally for a label while calling <I>tnCreateWidget</I><P><UL><LI>TN_CAPTION  : Specifies the caption to be used for the label.</LI><LI>TN_FONTNAME : Specifies the name of the font to be used for the label.</LI><LI>TN_FONTSIZE : Specifies the font size to be used for the label.</LI><LI>TN_FGCOLOR  : Specifies the foreground color to be used for the label.</LI><LI>TN_BGCOLOR  : Specifies the background color to be used for the label.</LI></UL><P>Examples:<P>A  label specification with foreground black,background white and caption "Hello World!"<P><BLOCKQUOTE><CODE><HR><PRE>mylabel=tnCreateWidget(TN_LABEL,mywindow,10,10,                        TN_CAPTION,"Hello World!",                        TN_BGCOLOR,TN_RGB(255,255,255),                        TN_FGCOLOR,TN_RGB(0,0,0),                        TN_END);                        </PRE><HR></CODE></BLOCKQUOTE><P>A label with  a caption "TinyWidgets",and with <I>courier new</I> font, size 16 points <BLOCKQUOTE><CODE><HR><PRE>mylabel=tnCreateWidget(TN_LABEL,mywindow,10,10,                        TN_FONTNAME,"cour",                        TN_FONTSIZE,16,                        TN_CAPTION,"TinyWidgets",                        TN_END);</PRE><HR></CODE></BLOCKQUOTE><P><H3>Callbacks</H3><P>The following callbacks can be specified while calling <I>tnRegisterCallBack</I> for a label.<UL><LI>CLICKED : Event occurs when user clicks and releases the label.</LI></UL><P><H3>Utility Functions</H3><P>The following utility functions can be used for a label to access and change its properties.<P><BLOCKQUOTE><CODE><HR><PRE>int tnSetLabelCaption(TN_WIDGET *widget, char *caption)</PRE><HR></CODE></BLOCKQUOTE>Description: Sets the caption for a label to <I>caption</I><P>Returns: 1 on success, -1 on failure.<P><BLOCKQUOTE><CODE><HR><PRE>int tnSetLabelCaptionColor(TN_WIDGET *widget, TN_COLOR color)</PRE><HR></CODE></BLOCKQUOTE>Description: Sets the color of the caption to <I>color</I> for the label<P>Returns: 1 on success, -1 on error.<P><BLOCKQUOTE><CODE><HR><PRE>TN_COLOR tnGetLabelCaptionColor(TN_WIDGET *widget)</PRE><HR></CODE></BLOCKQUOTE>Description: Gets the color of caption for the label <P>Returns: The color of caption on success , -1 on error.<BLOCKQUOTE><CODE><HR><PRE>int tnGetLabelCaption(TN_WIDGET *widget,char *caption)</PRE><HR></CODE></BLOCKQUOTE>Description: Gets the caption for the label.<P>Returns: 1 on success, -1 on failure.<H2><A NAME="TN_CHECKBUTTON"></A> <A NAME="ss5.4">5.4 TN_CHECKBUTTON</A></H2><P><H3>Introduction</H3><P>This is the checkbutton widget. It can be placed inside a window widget. It is like a toggle button.<H3>Specification</H3><P>The following properties can be optionally set via the <I>tnCreateWidget</I> call:<UL><LI> TN_CAPTION: The text to be displayed in the check button. It defaults to "Check Button"</LI><LI> TN_FONTNAME: The font (if installed) in which the text is to be displayed.</LI><LI> TN_FONTSIZE: The size of the font in which the text is to be displayed.</LI><LI> TN_FGCOLOR: The color in which the text is to be displayed.</LI><LI> TN_BGCOLOR: The background color of the checkbutton.</LI></UL>Examples:<P>A checkbutton with a caption of "TinyWidgets", to be displayed in Courier Font and fontsize 8.<P><BLOCKQUOTE><CODE><HR><PRE>checkbtn0 = tnCreateWidget(TN_CHECKBUTTON,window0,35,45,TN_FONTNAME,"cour",TN_FONTSIZE,8,TN_CAPTION,"TinyWidgets",TN_END);</PRE><HR></CODE></BLOCKQUOTE><P><H3>Callbacks</H3><P>The following callbacks can be registered for a checkbutton via <I>tnRegisterCallBack</I>.<UL><LI> CLICKED : This event occurs when the user clicks on the checkbutton.</LI></UL><H3>Utility Functions</H3><P>The following utility functions have been provided to manipulate the checkbutton<P><BLOCKQUOTE><CODE><HR><PRE>int tnGetCheckButtonCaption(TN_WIDGET *checkbutton, char *caption)</PRE><HR></CODE></BLOCKQUOTE>Description : Returns the currently set caption of the checkbutton.<P><BLOCKQUOTE><CODE><HR><PRE>int tnSetCheckButtonCaption(TN_WIDGET *checkbutton, char *caption)</PRE><HR></CODE></BLOCKQUOTE>Description : Sets the caption of the checkbutton.<P><BLOCKQUOTE><CODE><HR><PRE>int tnSetCheckButtonStatus(TN_WIDGET *checkbutton, TN_BOOL status)</PRE><HR></CODE></BLOCKQUOTE>Description : Sets the status of the checkbutton as specified.<P><BLOCKQUOTE><CODE><HR><PRE>TN_CHECKBUTTONACTIVE(checkbutton)</PRE><HR></CODE></BLOCKQUOTE>Description :  A macro which tests if the checkbutton is active.<P><P><H2><A NAME="TN_RADIOBUTTONGROUP"></A> <A NAME="ss5.5">5.5 TN_RADIOBUTTONGROUP</A></H2><P><H3>Introduction</H3><P>This is the radio button group widget. It can be placed inside a window widget. A radio button group needs to be created for grouping radio buttons. All radio buttons in a group will behave in a mutually exclusive manner. <H3>Specification</H3><P>The default caption for a radio button group is "RadioButton Group". The following properties can be optionally set via the <I>tnCreateWidget</I> call:<UL><LI>TN_CAPTION : The radio button group caption text.</LI></UL><H3>Callbacks</H3><P>The following callbacks can be registered via <I>tnRegisterCallBack</I><UL><LI>CLICKED : a pointer click occurs anywhere withing the radio button group.</LI><LI>SELECTED : a radio button within the group has been selected.</LI></UL><H3>Utility Functions</H3><P><BLOCKQUOTE><CODE><HR><PRE>int tnSetRadioButtonGroupCaption(TN_WIDGET *widget,char *caption)</PRE><HR></CODE></BLOCKQUOTE>Description: Sets the radio button group caption text.<P>Returns: 1 on success. -1 on failure.<BLOCKQUOTE><CODE><HR><PRE>int tnGetRadioButtonGroupCaption(TN_WIDGET *widget,char *caption)</PRE><HR></CODE></BLOCKQUOTE>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91久久国产综合久久| 日韩一区二区麻豆国产| 欧美婷婷六月丁香综合色| 久久综合五月天婷婷伊人| 亚洲午夜电影在线| 99久久er热在这里只有精品15 | 日韩国产欧美在线播放| 国产成人在线视频免费播放| 欧美精品久久一区| 亚洲老妇xxxxxx| 成人国产一区二区三区精品| 91麻豆精品国产综合久久久久久| 一区二区三区欧美在线观看| 成人h版在线观看| 亚洲精品成人悠悠色影视| 欧美三级蜜桃2在线观看| 亚洲欧美福利一区二区| 成人国产在线观看| 亚洲第一会所有码转帖| 欧美撒尿777hd撒尿| 精品午夜一区二区三区在线观看| 欧美日韩中文字幕一区| 九九精品视频在线看| 国产欧美日韩综合| 成人影视亚洲图片在线| 久久久久久久久久久电影| 韩国av一区二区三区四区| 精品乱人伦一区二区三区| 毛片不卡一区二区| 久久久午夜精品| 91丨porny丨首页| 亚洲精品久久久久久国产精华液| 在线观看91av| 丁香天五香天堂综合| 国产亚洲精品久| 国产成人免费在线观看不卡| 亚洲午夜久久久久中文字幕久| 精品国产一区a| 成人性生交大片免费看中文| 亚洲成人激情av| 国产精品看片你懂得| 色94色欧美sute亚洲线路二| 经典三级视频一区| 亚洲精品国久久99热| 亚洲国产成人自拍| 91视频com| 国产一区二区三区四区五区美女 | 欧美日韩一区三区| 国产不卡视频一区二区三区| 日韩 欧美一区二区三区| 亚洲乱码日产精品bd| 久久久午夜精品理论片中文字幕| 欧美精品一卡两卡| 色哟哟日韩精品| 日韩极品在线观看| 久久无码av三级| 欧美精品xxxxbbbb| 欧美最猛性xxxxx直播| 免费看日韩a级影片| 国产欧美一区二区三区鸳鸯浴| 欧美一区二区视频在线观看2022| 国内精品久久久久影院一蜜桃| 亚洲国产裸拍裸体视频在线观看乱了 | 免费成人在线视频观看| 亚洲图片一区二区| 亚洲欧美偷拍另类a∨色屁股| 国产女同性恋一区二区| 亚洲精品一区二区三区蜜桃下载 | 成人高清在线视频| 国产乱国产乱300精品| 亚洲一区在线观看视频| 日韩欧美色综合| 91最新地址在线播放| 国产成人在线视频播放| 国产精品自拍三区| 国产在线日韩欧美| 国内不卡的二区三区中文字幕 | 精品日韩av一区二区| 日韩视频一区二区| 日韩欧美黄色影院| 精品电影一区二区| xf在线a精品一区二区视频网站| 精品欧美一区二区在线观看| 欧美r级在线观看| 久久久久久免费毛片精品| 国产欧美一区二区精品仙草咪| 久久美女艺术照精彩视频福利播放| 久久久精品影视| 国产精品国产三级国产aⅴ原创 | 久久亚洲捆绑美女| 国产性色一区二区| 亚洲日本韩国一区| 国产人妖乱国产精品人妖| 国产精品色哟哟| 久久日一线二线三线suv| 久久一区二区三区四区| 专区另类欧美日韩| 亚洲成a人在线观看| 久久av资源网| 麻豆国产一区二区| 国产精品亚洲专一区二区三区| 成人综合在线网站| 日本大香伊一区二区三区| 欧美午夜精品一区二区蜜桃 | 久久99精品国产麻豆不卡| 国产一区二区福利| 91麻豆视频网站| 日韩一卡二卡三卡| 国产精品日韩成人| 午夜欧美2019年伦理| 一区二区三区精品在线| 日韩成人精品在线| 国产成人啪免费观看软件| 欧美在线高清视频| 精品福利在线导航| 亚洲欧美日韩电影| 久国产精品韩国三级视频| 成人白浆超碰人人人人| 欧美伦理电影网| 欧美国产成人精品| 蜜臀va亚洲va欧美va天堂 | 97国产一区二区| 欧美一级xxx| 最近中文字幕一区二区三区| 日韩精品一级二级| 99久久亚洲一区二区三区青草| 欧美色窝79yyyycom| 久久久噜噜噜久噜久久综合| 一区二区三区免费在线观看| 国产精品一区二区91| 欧美日韩你懂的| 国产精品国产馆在线真实露脸| 日本欧美久久久久免费播放网| 91免费在线视频观看| 国产亚洲精品bt天堂精选| 日本不卡一二三| 欧美日韩综合不卡| 最新日韩在线视频| 亚洲宅男天堂在线观看无病毒| 国产成人综合亚洲网站| 91精品国产综合久久久久久| 亚洲色欲色欲www| 国产成人精品在线看| 精品国产一区二区三区久久影院| 午夜精彩视频在线观看不卡| 色综合中文字幕国产 | 欧美日韩视频专区在线播放| 国产精品网站在线观看| 精品午夜一区二区三区在线观看| 欧美挠脚心视频网站| 欧美精品一区二区三区蜜桃| 午夜精品久久久久| 欧美午夜不卡视频| 一区二区三区免费| 91视视频在线观看入口直接观看www| 久久久一区二区| 激情另类小说区图片区视频区| 91精品国产欧美一区二区18 | 亚洲视频一区二区在线| 高清不卡在线观看av| 久久亚洲精精品中文字幕早川悠里 | 亚洲少妇屁股交4| 成人的网站免费观看| 亚洲国产成人午夜在线一区| 高清不卡在线观看av| 中文字幕巨乱亚洲| av亚洲精华国产精华精| 91精品国产欧美一区二区18| 日韩精品电影一区亚洲| 91精品婷婷国产综合久久| 日日夜夜一区二区| 日韩一卡二卡三卡| 久久97超碰色| 久久精品一级爱片| 国产成人啪午夜精品网站男同| 中日韩av电影| 色呦呦国产精品| 亚洲二区视频在线| 91精品国产色综合久久ai换脸 | 亚洲成av人片在线观看| 欧美视频日韩视频| 日本不卡在线视频| 欧美成人video| 成人免费视频视频| 一区二区三区免费| 日韩一区二区麻豆国产| 国产精品18久久久久久vr| 国产精品视频你懂的| 一本大道综合伊人精品热热| 午夜精品视频一区| 久久精品一区二区三区不卡牛牛| 波多野结衣在线一区| 亚洲自拍偷拍麻豆| 欧美成人三级电影在线| 福利一区二区在线| 亚洲第一电影网| 日韩精品一区二区三区swag| 国产不卡视频在线播放| 亚洲最大成人综合| 精品久久久久久久久久久久久久久 |