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

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

?? tnw-tut-5.html

?? TinyWidget文檔教程
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!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>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人app网站| 麻豆精品一区二区av白丝在线| 国产精品女主播在线观看| 国产精品伦一区二区三级视频| 亚洲人成网站色在线观看| 亚洲国产精品欧美一二99| 久久国产欧美日韩精品| 成人做爰69片免费看网站| 欧美综合久久久| 久久久三级国产网站| 一区二区三区中文字幕在线观看| 亚洲高清久久久| 床上的激情91.| 欧美一级日韩不卡播放免费| 国产精品成人网| 久久99精品国产.久久久久久| 国产成人啪免费观看软件| 欧美成人午夜电影| 亚洲天堂成人在线观看| 精品在线播放免费| 欧美视频中文字幕| 国产精品久久午夜夜伦鲁鲁| 视频在线观看91| 白白色 亚洲乱淫| 久久综合狠狠综合久久综合88| 一区二区三区在线看| 日韩高清在线一区| 色综合色狠狠综合色| 精品国产91九色蝌蚪| 亚洲香蕉伊在人在线观| 成人高清av在线| 26uuu国产电影一区二区| 亚洲国产乱码最新视频 | 男男成人高潮片免费网站| 成人激情开心网| 久久综合狠狠综合久久激情| 午夜精品久久久| 91久久精品网| 亚洲欧洲av一区二区三区久久| 精品一区二区三区在线观看国产| 欧美日韩国产高清一区二区三区 | 日韩一区二区三区视频在线观看| 久久影视一区二区| 奇米影视7777精品一区二区| 欧亚洲嫩模精品一区三区| 中文字幕一区二区在线观看| 国产精品一卡二| 久久综合久久鬼色| 极品销魂美女一区二区三区| 欧美日韩不卡一区| 午夜久久电影网| 欧美三级日韩三级国产三级| 亚洲裸体xxx| 日韩一级二级三级精品视频| 日本亚洲视频在线| 91精品国产综合久久精品app| 亚洲男同1069视频| 91在线一区二区三区| 18欧美乱大交hd1984| 91免费看`日韩一区二区| 亚洲精品视频自拍| 欧美最新大片在线看| 亚洲h动漫在线| 这里只有精品电影| 青青草国产精品97视觉盛宴 | 美女视频免费一区| 精品久久久网站| 国产成人免费网站| 国产精品成人一区二区艾草| 91网站最新地址| 亚洲国产乱码最新视频| 91女厕偷拍女厕偷拍高清| 一区二区三区免费网站| 欧美精选一区二区| 九九视频精品免费| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 久久99国产精品成人| 久久久91精品国产一区二区精品 | 中文字幕一区二区三区精华液 | 国内精品国产三级国产a久久| 国产亚洲精品免费| 91日韩在线专区| 舔着乳尖日韩一区| 久久久久久日产精品| 91九色最新地址| 久久黄色级2电影| 成人欧美一区二区三区视频网页| 在线区一区二视频| 久久99精品一区二区三区三区| 中文一区二区在线观看| 欧美视频精品在线| 偷拍一区二区三区| 国产亚洲精品久| 欧美日韩美少妇 | 亚洲线精品一区二区三区八戒| 91国偷自产一区二区三区成为亚洲经典 | 高清国产一区二区三区| 激情图片小说一区| 亚洲免费观看视频| 欧美精品一卡二卡| 成人免费毛片aaaaa**| 天堂久久一区二区三区| 国产精品久久久久久久久快鸭| 7777女厕盗摄久久久| 国产成人精品1024| 日韩av一区二| 综合婷婷亚洲小说| 久久精品视频在线看| 4438x成人网最大色成网站| 国产成人在线观看免费网站| 日韩在线播放一区二区| 亚洲激情在线播放| 国产精品乱人伦中文| 国产精品久久久久久久久免费丝袜| 久久影视一区二区| 国产午夜精品久久久久久免费视| 精品国产成人在线影院| 欧美大黄免费观看| 欧美精品一区二区三区四区| 欧美成人女星排名| 精品1区2区在线观看| www日韩大片| 国产精品免费看片| 亚洲欧美日韩成人高清在线一区| 亚洲精品国产无套在线观| 亚洲色图欧美偷拍| 亚洲小说欧美激情另类| 日韩和欧美一区二区| 精品亚洲欧美一区| 国产成人自拍高清视频在线免费播放| 国产成人精品亚洲午夜麻豆| 成人av电影在线| 欧美日韩一级二级三级| 91精品国产色综合久久| 久久亚洲一区二区三区明星换脸| 久久久久久久综合日本| |精品福利一区二区三区| 亚洲国产日韩在线一区模特| 蜜臀精品久久久久久蜜臀| 国产精品一区二区三区四区| 99精品桃花视频在线观看| 欧美日韩电影在线播放| 26uuu亚洲综合色欧美| 一区在线播放视频| 日韩中文字幕av电影| 国产福利视频一区二区三区| 色综合色狠狠天天综合色| 日韩美女在线视频 | 亚洲精选视频免费看| 亚洲成人av一区二区三区| 国产在线播放一区二区三区| 白白色 亚洲乱淫| 678五月天丁香亚洲综合网| 久久久国际精品| 亚洲电影一级黄| 国产大陆亚洲精品国产| 欧美日韩精品是欧美日韩精品| 久久综合久久久久88| 亚洲一区在线观看免费观看电影高清| 免费成人小视频| 色综合天天性综合| 久久青草欧美一区二区三区| 亚洲精品免费播放| 国产经典欧美精品| 欧美高清性hdvideosex| 国产精品第五页| 国内精品国产三级国产a久久| 91传媒视频在线播放| 国产喷白浆一区二区三区| 天天av天天翘天天综合网| 99久久精品费精品国产一区二区| 91精品国产手机| 一区二区三区蜜桃| 成人网在线免费视频| 日韩精品一区二区三区在线观看| 一区二区三区中文字幕精品精品| 国产传媒久久文化传媒| 日韩一区二区中文字幕| 亚洲成a人v欧美综合天堂| 99视频精品免费视频| 久久精品亚洲一区二区三区浴池| 日韩精品成人一区二区三区| 色偷偷久久人人79超碰人人澡| 国产欧美一二三区| 国产毛片精品国产一区二区三区| 欧美一区二区视频在线观看| 亚洲一区二区精品久久av| 99热在这里有精品免费| 欧美高清在线一区| 国产精品一区一区三区| 精品成人在线观看| 久久黄色级2电影| 日韩午夜精品视频| 奇米色一区二区| 欧美一区二区在线免费播放| 亚洲成人动漫在线观看| 欧美日本在线一区| 日韩精品一级中文字幕精品视频免费观看 | 中文字幕乱码久久午夜不卡| 国产剧情一区在线|