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

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

?? tnw-tut-5.html

?? TinyWidget文檔教程
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
</CODE></BLOCKQUOTE><P><H3>Callbacks</H3><P>The following callbacks can be specified while calling <I>tnRegisterCallBack</I> for a listbox.<UL><LI> CLICKED : Event occurs when user clicks in the listbox.</LI></UL><P><H3>Utility Functions</H3><P>The following utility functions have been provided for manipulating the listbox.<BLOCKQUOTE><CODE><HR><PRE>int tnGetSelectedListItems(TN_WIDGET *widget, char ***listitems,int *count)</PRE><HR></CODE></BLOCKQUOTE>Description : Allocates space and returns the selected items in the listbox(multiple items can be selected using the Cntrl key modifier). Count contains the number of selected items. The user is expected to free the Listitems after he has finished using them.<P><BLOCKQUOTE><CODE><HR><PRE>int tnGetAllListItems(TN_WIDGET *listbox, char ***items, int *count)</PRE><HR></CODE></BLOCKQUOTE>Description : Returns all the items in the Listbox. The user is again expected to free the list of items.<P><BLOCKQUOTE><CODE><HR><PRE>int tnGetSelectedListNum(TN_WIDGET *listbox)</PRE><HR></CODE></BLOCKQUOTE>Returns: The number of items selected in the Listbox, -1 if there is an error.<P><BLOCKQUOTE><CODE><HR><PRE>int tnGetSelectedListPos(TN_WIDGET *listbox,int **pos,int *count)</PRE><HR></CODE></BLOCKQUOTE>Description : Returns the indices of the selected list items and their count. The pos array is allocated in the function and hence the user must free it after he is finished.<P><BLOCKQUOTE><CODE><HR><PRE>int tnGetListItemPos(TN_WIDGET *listbox, char *item)</PRE><HR></CODE></BLOCKQUOTE>Description : Given an item, it returns its index in the Listbox.<P>Returns : -1 if the item was not found in the Listbox, or some error occured.<P><BLOCKQUOTE><CODE><HR><PRE>int tnAddItemToListBox(TN_WIDGET *listbox, char *item)</PRE><HR></CODE></BLOCKQUOTE>Description :  Adds the item to the end of the list of items currently in the Listbox.<P><BLOCKQUOTE><CODE><HR><PRE>int tnAddItemToListBoxAt(TN_WIDGET *listbox, char *item, int pos)</PRE><HR></CODE></BLOCKQUOTE>Description : Adds the item to the list of items currently in the Listbox at the position specified by pos. If pos is greater than the number of items currently in the listbox then the item is added to the end of the list of items.<P><BLOCKQUOTE><CODE><HR><PRE>int tnDeleteItemFromListBox(TN_WIDGET *listbox, char *item)</PRE><HR></CODE></BLOCKQUOTE>Description : Deletes the item from the list of items currently displayed in the listbox.<P>Returns: -1 if the item was not found in the Listbox.<P><BLOCKQUOTE><CODE><HR><PRE>int tnDeleteItemFromListBoxAt(TN_WIDGET *listbox, int pos)</PRE><HR></CODE></BLOCKQUOTE>Description : Deletes the item from the Listbox whose index is specified by pos. <P>Returns: -1 if pos is greater than the number of items in the listbox.<P><BLOCKQUOTE><CODE><HR><PRE>int tnDeleteSelectedItems(TN_WIDGET *listbox)</PRE><HR></CODE></BLOCKQUOTE>Description : Deletes all the items in the listbox which have been selected by the user.<P><BLOCKQUOTE><CODE><HR><PRE>int tnDeleteAllItemsFromListBox(TN_WIDGET *listbox)</PRE><HR></CODE></BLOCKQUOTE>Description : Deletes all the items from the Listbox.<P><BLOCKQUOTE><CODE><HR><PRE>int tnSetSelectedListItem(TN_WIDGET *listbox,char *item, TN_BOOL selected)</PRE><HR></CODE></BLOCKQUOTE>Description : Sets the status of the item in the listbox as specified by the selected parameter (TN_TRUE = selected, TN_FALSE = unselected).<P>Returns : -1 if the item is not found in the Listbox.<P><BLOCKQUOTE><CODE><HR><PRE>int tnSetSelectedListItemAt(TN_WIDGET *listbox, int pos, TN_BOOL selected)</PRE><HR></CODE></BLOCKQUOTE>Description : Sets the status to selected, of the item whose index is specified by pos.  <P>Returns : -1 if the index is specified is greater than the number of items in the listbox.<P><BLOCKQUOTE><CODE><HR><PRE>int tnListItemsLineUp(TN_WIDGET *widget, int number)</PRE><HR></CODE></BLOCKQUOTE>Description : Scrolls the list of items displayed in the listbox up by the number of lines specified. Work only if the TN_RESIZE property of the listbox is set to TN_FALSE. <P><BLOCKQUOTE><CODE><HR><PRE>int tnListItemsLineDown(TN_WIDGET *widget, int number)</PRE><HR></CODE></BLOCKQUOTE>Description :  Scrolls the list of items displayed in the listbox up by the number of lines specified. Works only if the TN_RESIZE property of the listbox is set to TN_FALSE. <P><BLOCKQUOTE><CODE><HR><PRE>int tnGetListTop(TN_WIDGET *listbox)</PRE><HR></CODE></BLOCKQUOTE>Description : Gets the index of the item displayed at the top of the Listbox. Works only if the TN_RESIZE property of the listbox is set to TN_FALSE. The above three functions can be used in conjunction with the scrollbar to scroll the items displayed in the Listbox.<P><BLOCKQUOTE><CODE><HR><PRE>int tnGetListBoxResize(TN_WIDGET *listbox, TN_BOOL *resize)</PRE><HR></CODE></BLOCKQUOTE>Description : Returns the currently set resize property of the listbox<P><BLOCKQUOTE><CODE><HR><PRE>int tnSetListBoxResize(TN_WIDGET *listbox, TN_BOOL resize)</PRE><HR></CODE></BLOCKQUOTE>Description : Sets the resize property of the listbox as sepcified.<P><H2><A NAME="TN_PICTURE"></A> <A NAME="ss5.11">5.11 TN_PICTURE</A></H2><P><H3>Introduction</H3><P>This is the picture widget and allows the user to display images(BMP, JPEG, GIF etc) in a picture container. <P><H3>Specifications</H3><P>The following optional properties can be specified for a picture while calling <I>tnCreateWidget</I><UL><LI> TN_FILENAME : The filename of the image to be displayed in the container. The full path of the filename must be specified.</LI><LI> TN_STRETCH : This is a Boolean value. If True then the container will be resized to the size of the image to be displayed. If this value is false the image will be resized to the size of the container.By default this property is set to TN_FALSE. </LI></UL>Examples:<P>A picture specification with the image file "/root/Images/liz.jpg" where the container is resized to the size of the image.<P><BLOCKQUOTE><CODE><HR><PRE>mypicture=tnCreateWidget(TN_PICTURE,window0,50,50,TN_FILENAME,"/root/Images/liz.jpg",TN_STRETCH,TN_TRUE,TN_END);</PRE><HR></CODE></BLOCKQUOTE><P><H3>Callbacks</H3><P>The following callbacks can be specified while calling <I>tnRegisterCallBack</I> for a Picture.<UL><LI> CLICKED : Event occurs when user clicks on the Picture container.</LI></UL><P><H3>Utility Functions</H3><P><P>The following utility functions have been provided for the Picture widget to access and change its properties. <BLOCKQUOTE><CODE> <HR><PRE> int tnGetPictureProps(TN_WIDGET *picture, TN_BOOL *stretch, char **filename) </PRE><HR> </CODE></BLOCKQUOTE>Description: This function returns the currently set properties of the picture i.e. Stretch and the filename of the currently displayed image in the picture. The user is expected to free the filename string which this function allocates. <P>Returns: 1 on success, -1 on failure.<P><BLOCKQUOTE><CODE> <HR><PRE> int tnSetPicture(TN_WIDGET *picture, char *filename) </PRE><HR></CODE></BLOCKQUOTE>Description: This function loads the image specified by filename into the picture widget. <P>Returns: 1 if succesful, -1 in case of error. <P><BLOCKQUOTE><CODE> <HR><PRE> int tnSetPictureStretch(TN_WIDGET *picture,GR_BOOL stretch) </PRE><HR> </CODE></BLOCKQUOTE>Description: This function sets the Stretch property of the picture widget. <P><BLOCKQUOTE><CODE> <HR><PRE> int tnPictureDup(TN_WIDGET *destpic,TN_WIDGET *srcpic) </PRE><HR> </CODE></BLOCKQUOTE>Description: This function duplicates the image displayed in the srcpic widget into the destpic widget. This is especially useful in order to save memory. By using the Duplication of the image it is not loaded by the server again. <P><BLOCKQUOTE><CODE> <HR><PRE> int tnGetPictureImageProps(TN_WIDGET *picture, TN_IMAGE_INFO *iinfo) </PRE><HR> </CODE></BLOCKQUOTE>Description: Fills the iinfo structure with the following properties relevant to the image displayed in the picture container. <UL><LI> Height of the image.</LI><LI> Width of the image.</LI><LI> Bits per pixel.</LI><LI> Bytes per pixel.</LI></UL><P><H2><A NAME="TN_MENUBAR"></A> <A NAME="ss5.12">5.12 TN_MENUBAR</A></H2><P><H3>Introduction</H3><P>This is the menu bar widget. It is to be placed in a window widget. <H3>Specification</H3><P>A call to <I>tnCreateWidget</I> will create a horizontal menu bar, which is aligned to the window top and resized to the window width, by default. The x &amp; y position can optionally be specified.<P>Examples:The following call will create a default menu bar (aligned to the window top) <BLOCKQUOTE><CODE><HR><PRE>menu_bar = tnCreateWidget(TN_MENUBAR,window,0,0,TN_END);</PRE><HR></CODE></BLOCKQUOTE><H2><A NAME="TN_POPUPMENU"></A> <A NAME="ss5.13">5.13 TN_POPUPMENU</A></H2><P><H3>Introduction</H3><P>This is the popup menu widget. It allows for creation of popup menus. It is to be placed inside a menubar widget.A popup menu widget must be defined for providing pull down menu functionality. <H3>Specification</H3><P>The following properties can be set via the <I>tnCreateWidget</I> call<UL><LI>TN_CAPTION : The label for the popup menu.</LI><LI>TN_EXCLUSIVE : This atrribute if set makes the subsequently added checkable menu items behave in a mutually exclusive manner.</LI></UL>Examples:The following call will create a default popup menu with the label "File". (The TN_AUTO keyword indicates that positioning will be automatically handled).<BLOCKQUOTE><CODE><HR><PRE>popup_menu = tnCreateWidget(TN_POPUPMENU,menu_bar,TN_AUTO,TN_AUTO,TN_CAPTION,"File",TN_END);</PRE><HR></CODE></BLOCKQUOTE><H2><A NAME="TN_CASCADEDMENU"></A> <A NAME="ss5.14">5.14 TN_CASCADEDMENU</A></H2><P><H3>Introduction</H3><P>This is the cascade menu widget. It is to be placed inside a popup menu widget. It provides cascade (horizontal menus) functionality. A cascade menu will be displayed as a label with a rightward pointing arrow.<H3>Specification</H3><P>The following properties can be set via the <I>tnCreateWidget</I> call<UL><LI>TN_CAPTION : The label for the cascade menu.</LI><LI>TN_EXCLUSIVE : This atrribute if set makes the subsequently added checkable menu items behave in a mutually exclusive manner.</LI></UL>Examples:The following call will create a default cascade menu atached to a popup menu, with the label "Tools". (The TN_AUTO keyword indicates that positioning will be automatically handled).<BLOCKQUOTE><CODE><HR><PRE>cascade_menu = tnCreateWidget(TN_CASCADEMENU,popup_menu,TN_AUTO,TN_AUTO,TN_CAPTION,"Tools",TN_END);</PRE><HR></CODE></BLOCKQUOTE><H2><A NAME="TN_MENUITEM"></A> <A NAME="ss5.15">5.15 TN_MENUITEM</A></H2><P><H3>Introduction</H3><P>This is the menu item widget. It can be placed inside any of the following<UL><LI>Menu Bar</LI><LI>PopUp Menu</LI><LI>Cascade Menu</LI></UL>It is the basic menu item which when clicked, a programmer defined action can be taken.<H3>Specification</H3><P>The following properties may be set via the <I>tnCreateWidget</I> call<UL><LI>TN_CAPTION : The label for the menu item.</LI><LI>TN_CHECKABLE : This attribute, if set, causes the menu item to toggle state when clicked. A dot appears against a selected menu item. (This can be used in conjunction with the TN_EXCLUSIVE flag for the popup &amp; cascade menus to provide a mutually exclusive group of menu items).</LI></UL>Examples:The following call will create a basic menu item with the label "Open", within a popup menu. (TN_AUTO for the x &amp; y positions indicates automatic positioning).<BLOCKQUOTE><CODE><HR><PRE>mitem0 = tnCreateWidget(TN_MENUITEM,popup_menu,TN_AUTO,TN_AUTO,TN_CAPTION,"Open",TN_END);</PRE><HR></CODE></BLOCKQUOTE><P>The following call will create a checkable (toggle) menu item within a cascade menu.<BLOCKQUOTE><CODE><HR><PRE>mitem1 = tnCreateWidget(TN_MENUITEM,cascade_menu,TN_AUTO,TN_AUTO,TN_CAPTION,"Tool1",TN_CHECKABLE,TN_TRUE,TN_END);</PRE><HR></CODE></BLOCKQUOTE><H3>Callbacks</H3><P>The following callback(s) can be registered via the <I>tnRegisterCallBack</I> call<UL><LI>CLICKED : Specifies the action routine to be called when the menu item is clicked.</LI></UL><HR><A HREF="tnw-tut-6.html">Next</A><A HREF="tnw-tut-4.html">Previous</A><A HREF="tnw-tut.html#toc5">Contents</A></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产午夜精品| 91福利小视频| 国产欧美视频一区二区三区| 国产精品亚洲第一 | 欧美精品丝袜中出| 日韩va欧美va亚洲va久久| 欧美电视剧在线观看完整版| 国产精品99久久久久久似苏梦涵| 中文字幕欧美激情一区| 色哦色哦哦色天天综合| 视频一区中文字幕| 久久综合国产精品| 99久久夜色精品国产网站| 亚洲精品成人精品456| 欧美一级生活片| 国产福利91精品一区二区三区| 亚洲视频在线一区观看| 欧美一区二区在线免费观看| 国产综合色产在线精品| 亚洲精品成a人| wwwwxxxxx欧美| 在线一区二区观看| 国产在线乱码一区二区三区| 亚洲精品免费视频| 日韩免费成人网| 一本一道综合狠狠老| 久久精品99久久久| 亚洲精品视频自拍| 精品裸体舞一区二区三区| 99精品视频在线免费观看| 偷拍一区二区三区| 国产精品免费视频观看| 欧美日韩成人一区二区| 国产69精品久久777的优势| 香蕉成人伊视频在线观看| 国产亚洲一区二区在线观看| 欧美久久久影院| 成人一级片在线观看| 午夜国产精品一区| 亚洲欧美在线aaa| 精品国产免费视频| 欧美这里有精品| 国产99久久久国产精品潘金网站| 日日摸夜夜添夜夜添精品视频 | 日韩免费在线观看| 欧美亚洲高清一区| 波多野结衣亚洲| 国产又黄又大久久| 美女免费视频一区| 亚洲高清视频在线| 亚洲欧美日韩系列| 中文子幕无线码一区tr| 欧美精品一区二区三区蜜臀| 91精品国产色综合久久久蜜香臀| 91香蕉视频在线| 成人性生交大合| 国产麻豆精品久久一二三| 免费一级片91| 蜜桃av一区二区| 日本视频一区二区| 天堂蜜桃一区二区三区| 亚洲mv在线观看| 一级做a爱片久久| 亚洲另类一区二区| 亚洲欧美乱综合| 中文字幕佐山爱一区二区免费| 国产亚洲一区二区三区四区| 欧美精品一区二区不卡| 精品久久久久一区二区国产| 91精品国产综合久久久久久久| 欧美色欧美亚洲另类二区| 欧美在线观看视频一区二区| 欧美亚日韩国产aⅴ精品中极品| 91视频免费看| 色哟哟一区二区三区| 一本色道久久综合精品竹菊| 一本久道中文字幕精品亚洲嫩| 波多野结衣一区二区三区| 99精品1区2区| 色国产精品一区在线观看| 欧美伊人久久大香线蕉综合69| 欧美在线观看视频在线| 欧美高清你懂得| 日韩一区二区精品在线观看| 日韩精品一区在线| 国产日本亚洲高清| 国产精品久久久久久久蜜臀| 中文字幕中文字幕中文字幕亚洲无线| 国产精品久久二区二区| 一卡二卡三卡日韩欧美| 五月综合激情网| 精品一区二区免费| 成人小视频免费观看| 色乱码一区二区三区88| 欧美日韩亚洲综合在线| 日韩视频免费观看高清完整版| 精品理论电影在线| 中文字幕一区二区日韩精品绯色| 尤物视频一区二区| 日本伊人精品一区二区三区观看方式| 精品在线播放午夜| 成人av第一页| 精品污污网站免费看| 精品国产一区a| 国产精品护士白丝一区av| 亚洲精品视频一区| 免费亚洲电影在线| 99久精品国产| 日韩一区二区三区三四区视频在线观看| 欧美变态tickle挠乳网站| 中文字幕一区日韩精品欧美| 亚洲国产成人精品视频| 精品一区二区三区不卡| 一本久久精品一区二区| 日韩欧美高清dvd碟片| 国产精品久久久久一区 | 亚洲天堂av一区| 日韩精品亚洲一区二区三区免费| 国产精品白丝av| 欧美高清在线精品一区| 亚洲欧美韩国综合色| 免费观看30秒视频久久| 91在线云播放| 久久综合色综合88| 亚洲6080在线| 成人国产精品免费观看视频| 56国语精品自产拍在线观看| 亚洲欧洲av一区二区三区久久| 欧美aaa在线| 在线免费观看成人短视频| 国产婷婷色一区二区三区在线| 天堂精品中文字幕在线| 91在线观看成人| 久久久久久久久久久久久夜| 首页综合国产亚洲丝袜| 99re热视频精品| 国产亚洲精品资源在线26u| 日韩精品亚洲一区| 欧美亚一区二区| 亚洲视频资源在线| 国产a区久久久| 2020国产成人综合网| 日韩av在线免费观看不卡| 色欧美日韩亚洲| 亚洲视频你懂的| 成人做爰69片免费看网站| 26uuu国产日韩综合| 美女性感视频久久| 欧美精品丝袜久久久中文字幕| 亚洲一区二区三区四区五区黄| 99久久免费国产| 中文字幕第一区| 国产成人亚洲综合a∨婷婷图片 | 国产网红主播福利一区二区| 美女视频网站久久| 91精品免费观看| 午夜视频在线观看一区二区三区 | 一区二区三区91| 99久久99久久久精品齐齐| 中文av一区特黄| 国产成人精品午夜视频免费| 久久亚区不卡日本| 国产尤物一区二区| 久久久国际精品| 国产激情91久久精品导航| 国产午夜亚洲精品不卡| 懂色av一区二区三区免费观看| 国产日韩精品久久久| 成人性视频免费网站| 国产精品久久久久毛片软件| www.亚洲色图| 亚洲精品成人精品456| 欧美在线你懂得| 亚洲成人av一区| 欧美一区二区三区不卡| 久久精品国产久精国产爱| 精品国内二区三区| 国产精品12区| 亚洲欧洲成人自拍| 在线一区二区视频| 性感美女久久精品| 精品国产123| 国产91露脸合集magnet| 亚洲免费观看高清完整版在线观看 | 国产一二三精品| 亚洲欧美一区二区在线观看| 欧美在线你懂得| 麻豆精品一二三| 国产欧美日本一区二区三区| 99免费精品在线观看| 亚洲综合区在线| 欧美一区二区在线视频| 国产成人精品免费视频网站| 亚洲欧美日韩在线不卡| 欧美精品自拍偷拍| 国产精品影视在线观看| 亚洲色图在线看| 日韩精品一区二区在线| 99视频一区二区| 免费国产亚洲视频|