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

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

?? unx47.htm

?? Unix Unleashed, Third Edition is written with the power user and system administrator in mind. This
?? HTM
?? 第 1 頁 / 共 5 頁
字號:

**/

#define MAX_SCALE 1080

#define MIN_SCALE 800

static void

myfunction(Widget w, XtPointer dclient,  XmScaleCallbackStruct *p)

{

int k;

k = p->value;

if ((k & 0x1) == 0)  /** % 2  is zero ** check limits & increase **/

     {

     k++;

     if (k >= MAX_SCALE) k = MIN_SCALE + 1;

     if (k <= MIN_SCALE) k = MAX_SCALE - 1;

XmScaleSetValue(w,k);  /** this will redisplay it too

**/

}

}</PRE>

<H3 ALIGN="CENTER">

<CENTER><A ID="I18" NAME="I18">

<FONT SIZE=4><B>The Text Widget</B>

<BR></FONT></A></CENTER></H3>

<P>The Text widget allows the user to type in text. This text can be multi-line, and the Text widget provides full text editing capabilities. If you are sure you want only single-line input from the user, you can specify the TextField widget. This is 
simply a scaled-down version of the Text widget. The resources for both are the same unless explicitly stated. These include:

<BR></P>

<UL>

<LI>XmNvalue: A character string, just like in C. This is different from Motif 1.1 or older, where this value was a compound string. If you have Motif 1.2 or later, this will be C string.

<BR>

<BR></LI>

<LI>XmNmarginHeight and XmNmarginWidth: The number of pixels between the widget border and the text. The default is 5 pixels.

<BR>

<BR></LI>

<LI>XmNmaxLength: This sets the limit on the number of characters in the XmNvalue resource.

<BR>

<BR></LI>

<LI>XmNcolumns: The number of characters per line.

<BR>

<BR></LI>

<LI>XmNcursorPosition: The number of characters at the cursor position from the beginning of the text file.

<BR>

<BR></LI>

<LI>XmNeditable: The Boolean value that, if set to TRUE, will allow the user to insert text.

<BR>

<BR></LI></UL>

<P>The callbacks for this widget are:

<BR></P>

<UL>

<LI>XmNactivateCallback: Called when the user presses the Return key.

<BR>

<BR></LI>

<LI>XmNfocusCallback: Called when the widget receives focus from the pointer.

<BR>

<BR></LI>

<LI>XmNlosingFocusCallback: Called when the widget loses focus from the pointer.

<BR>

<BR></LI></UL>

<P>There are several convenience functions for this widget:

<BR></P>

<UL>

<LI>XmTextGetString(Widget w) returns a C string (char *).

<BR>

<BR></LI>

<LI>XmTextSetString(Widget w, char *s) sets a string for a widget.

<BR>

<BR></LI>

<LI>XmTextSetEditable(Widget w, Boolean trueOrFalse) sets the editable string of the widget.

<BR>

<BR></LI>

<LI>XmTextInsert(Widget w, XmTextPosition pos, char *s) sets the text at the position defined by pos. This XmTextPosition is an opaque item defining the index in the text array.

<BR>

<BR></LI>

<LI>XmTextShowPosition(Widget w, XmTextPosition p) scrolls to show the rest of the string at the position p.

<BR>

<BR></LI>

<LI>XmTextReplace(Widget w, XmTextPosition from, XmTextPosition to, char *s) replaces the string starting from the location from inclusive to the position to, with the characters in string s.

<BR>

<BR></LI>

<LI>XmTextRemove(Widget w) clears the text in a string.

<BR>

<BR></LI>

<LI>XmTextCopy(Widget w, Time t) copies the currently selected text to the Motif clipboard. The Time t value is derived from the most recent XEvent (usually in a callback), which is used by the clipboard to take the most recent entry.

<BR>

<BR></LI>

<LI>XmTextCut(Widget w, Time t) is like XmTextCopy, but removes the selected text from the text's buffer.

<BR>

<BR></LI>

<LI>XmTextPaste(Widget w) pastes the contents of the Motif clipboard onto the text area at the current cursor (insertion) position.

<BR>

<BR></LI>

<LI>XmTextClearSelection(Widget w, XmTextPosition p, XmTextPosition q, Time t) selects the text from location p to location q.

<BR>

<BR></LI></UL>

<P>In the following example, you could construct a sample editor application with the Text widget. For the layout of the buttons, you would use widgets of the XmManager class to manage the layout for you. These manager widgets are:

<BR></P>

<UL>

<LI>XmBulletinBoard

<BR>

<BR></LI>

<LI>XmRowColumn

<BR>

<BR></LI>

<LI>XmForm

<BR>

<BR></LI></UL>

<H3 ALIGN="CENTER">

<CENTER><A ID="I19" NAME="I19">

<FONT SIZE=4><B>The Bulletin Board Widget</B>

<BR></FONT></A></CENTER></H3>

<P>The Bulletin Board widget allows the programmer to lay out widgets by specifying their XmNx and XmNy resources. These values are relative to the top left corner of the Bulletin Board widget. The Bulletin Board widget will not move the children widget 
around on itself. If a widget resizes, it's the application's responsibility to resize and restructure its widgets on the Bulletin Board.

<BR></P>

<P>The resources for the widget are:

<BR></P>

<UL>

<LI>XmNshadowType: Specifies the type of shadow for this widget. It can be set to XmSHADOW_OUT (the default), XmSHADOW_ETCHED_IN, XmSHADOW_ETCHED_OUT, or XmSHADOW_IN.

<BR>

<BR></LI>

<LI>XmNshadowThickness: The number of pixels for the shadow. This is defaulted to 0 (no shadow).

<BR>

<BR></LI>

<LI>XmNallowOverlap: Allows the children to be overlapped as they are laid on the widget. This is a Boolean resource and is defaulted to TRUE.

<BR>

<BR></LI>

<LI>XmNresizePolicy: Specifies the resize policy for managing itself. If set to XmRESIZE_NONE, it will not change its size. If set to XmRESIZE_ANY, it will grow or shrink to attempt to accommodate all its children automatically. This is the default. If set 

to XmRESIZE_GROW, it will grow, but never shrink, automatically.

<BR>

<BR></LI>

<LI>XmNbuttonFontList: Specifies the font for all XmPushButton children.

<BR>

<BR></LI>

<LI>XmNlabelFontList: Specifies the default font for all widgets derived from XmLabel.

<BR>

<BR></LI>

<LI>XmNtextFontList: Specifies the default font for all Text, TextField, and XmList children.

<BR>

<BR></LI></UL>

<P>It also provides the callback XmNfocusCallback, which is called when any children of the Bulletin Board receives focus.

<BR></P>

<H3 ALIGN="CENTER">

<CENTER><A ID="I20" NAME="I20">

<FONT SIZE=4><B>The </B><B><I>RowColumn </I></B><B>Widget</B>

<BR></FONT></A></CENTER></H3>

<P>The RowColumn widget class orders its children in a row or columnar fashion. This is used to set up menus, menu bars, and radio buttons. The resources provided by this widget include:

<BR></P>

<UL>

<LI>XmNorientation: XmHORIZONTAL for a row major layout of its children; XmVERTICAL for a column major layout.

<BR>

<BR></LI>

<LI>XmNnumColumns: Specifies the number of rows for a vertical widget and the number of columns for a horizontal widget.

<BR>

<BR></LI>

<LI>XmNpacking: Determines how the children are packed. XmPACK_TIGHT allows the children to specify their own size. It fits children in a row (or column if XmHORIZONTAL), and then starts a new row if no space is available. XmPACK_NONE forces Bulletin 
Board-like behavior. XmPACK_COLUMN forces all children to be the size of the largest column. This uses the XmNnumColumns resource and places all its children in an organized manner.

<BR>

<BR></LI>

<LI>XmNentryAlignment: Specifies which part of the children to use in its layout alignment. Its default is XmALIGNMENT_CENTER, but it can be set to XmALIGNMENT_BEGINNING for the left side or XmALIGNMENT_END for the right side. This is on a per column 
basis.

<BR>

<BR></LI>

<LI>XmNverticalEntryAlignment: Specifies the alignment on a per row basis. It can be assigned a value of XmALIGNMENT_BASELINE_BOTTOM, XmALIGNMENT_BASELINE_TOP, XmALIGNMENT_CONTENTS_BOTTOM, XmALIGNMENT_CONTENTS_TOP, or XmALIGNMENT_CENTER.

<BR>

<BR></LI>

<LI>XmNentryBorder: The thickness of a border drawn around all children, and is defaulted to 0.

<BR>

<BR></LI>

<LI>XmNresizeWidth: A Boolean variable that, if set to TRUE, will allow the RowColumn widget to resize its width when necessary.

<BR>

<BR></LI>

<LI>XmNresizeHeight: A Boolean variable that, if set to TRUE, will allow the RowColumn widget to resize its height when necessary.

<BR>

<BR></LI>

<LI>XmNradioBehaviour: Works with toggle buttons only. It allows only one toggle button in a group of buttons to be active at a time. The default is FALSE.

<BR>

<BR></LI>

<LI>XmNisHomogeneous: If set to TRUE, this specifies that only children of the type Class in XmNentryClass can be children of this widget. The default is FALSE.

<BR>

<BR></LI>

<LI>XmNentryClass: Specifies the class of children allowed in this widget if XmNisHomogeneous is TRUE. A sample radio button application was shown in file 47_5c. To see another example of the same listing but with two columns, see file 47_8c on the CD-ROM.



<BR>

<BR></LI></UL>

<H3 ALIGN="CENTER">

<CENTER><A ID="I21" NAME="I21">

<FONT SIZE=4><B>The Form Widget</B>

<BR></FONT></A></CENTER></H3>

<P>The beginning of the chapter introduced you to the workings of the Form widget. This is the most flexible and most complex widget in Motif. Its resources include:

<BR></P>

<UL>

<LI>XmNtopAttachment

<BR>

<BR></LI>

<LI>XmNleftAttachment

<BR>

<BR></LI>

<LI>XmNrightAttachment

<BR>

<BR></LI>

<LI>XmNbottomAttachment

<BR>

<BR></LI></UL>

<P>These values specify how a child is placed. The following values correspond to each side of the widget:

<BR></P>

<PRE>

<BR>XmATTACH_NONE: Do not attach this side to Form.



<BR>XmATTACH_FORM: Attach to corresponding side on Form.



<BR>XmATTACH_WIDGET: Attach this side to opposite side of a reference widget. For example, attach the right side of this widget to the left side of the reference widget. A reference widget is another child on the same form.



<BR>XmATTACH_OPPOSITE_WIDGET: Attach this side to same side of a reference widget. This is rarely used.



<BR>XmATTACH_POSITION: Attach a side by the number of pixels shown in XmNtopPosition, XmNleftPosition, XmNrightPosition, and XmNbottomPosition resources, respectively.



<BR>XmATTACH_SELF: Use XmNx, XmNy, XmNheight, and XmNwidth.</PRE>

<P>The following resources are set to the corresponding widgets for each side for the XmATTACH_WIDGET setting in an attachment:

<BR></P>

<UL>

<LI>XmNtopWidget

<BR>

<BR></LI>

<LI>XmNleftWidget

<BR>

<BR></LI>

<LI>XmNrightWidget

<BR>

<BR></LI>

<LI>XmNbottomWidget

<BR>

<BR></LI></UL>

<P>The following resources are the number of pixels a side of a child is offset from the corresponding Form side. The offset is used when the attachment is XmATTACH_FORM.

<BR></P>

<UL>

<LI>XmNtopOffset

<BR>

<BR></LI>

<LI>XmNleftOffset

<BR>

<BR></LI>

<LI>XmNrightOffset

<BR>

<BR></LI>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级欧美一级在线播放| 亚洲丝袜美腿综合| 欧美日韩国产美女| 日韩免费福利电影在线观看| 久久夜色精品国产噜噜av | 欧美影视一区在线| 精品国产污污免费网站入口| 国产精品色在线| 日韩专区一卡二卡| 国产在线精品一区二区三区不卡| 成人理论电影网| 3d动漫精品啪啪| 中文字幕在线播放不卡一区| 日韩国产欧美三级| 色综合天天性综合| www久久精品| 日韩毛片在线免费观看| 久久国产婷婷国产香蕉| 91蜜桃视频在线| 欧美精品一区二区三区四区| 一区二区三区四区高清精品免费观看 | 韩国成人福利片在线播放| www.欧美.com| 久久嫩草精品久久久久| 亚洲国产欧美一区二区三区丁香婷| 韩国一区二区三区| 欧美狂野另类xxxxoooo| 一区在线观看视频| 国产麻豆欧美日韩一区| 日韩一区二区三区在线| 一区二区三区色| 99这里只有精品| 国产喂奶挤奶一区二区三区| 秋霞影院一区二区| 成人激情午夜影院| 久久久久久麻豆| 看片的网站亚洲| 欧美本精品男人aⅴ天堂| 亚洲v中文字幕| 欧美性一二三区| 亚洲欧洲日本在线| 国产91精品精华液一区二区三区 | 国产精品久久久久久久久晋中| 欧美aⅴ一区二区三区视频| 91久久免费观看| 亚洲欧美日韩一区二区| 国产乱码精品一品二品| 精品区一区二区| 激情都市一区二区| 欧美不卡在线视频| 麻豆精品新av中文字幕| 欧美最新大片在线看| 亚洲精品美国一| 欧美最猛性xxxxx直播| 一区二区三区91| 欧美性生活大片视频| 欧美激情综合五月色丁香小说| 国产一区二区三区在线观看免费| 精品国产伦一区二区三区观看体验| 日日摸夜夜添夜夜添国产精品| 91精品国产高清一区二区三区 | 欧美亚州韩日在线看免费版国语版| 亚洲品质自拍视频| 欧美系列日韩一区| 日本伊人色综合网| 精品国产凹凸成av人网站| 国产精品伊人色| 国产欧美一区二区三区在线老狼| 成人午夜av在线| 亚洲美女视频在线| 欧美乱妇20p| 国产一区二区三区久久悠悠色av| 精品三级在线观看| 不卡高清视频专区| 亚洲网友自拍偷拍| 亚洲精品在线电影| av电影天堂一区二区在线| 亚洲欧美日韩国产综合| 欧美日韩你懂的| 国内精品第一页| 亚洲色大成网站www久久九九| 在线观看欧美日本| 奇米影视一区二区三区| 久久精品在线观看| 欧美三级乱人伦电影| 久久超碰97中文字幕| 精品国产乱码91久久久久久网站| 国产91露脸合集magnet| 一区二区三区自拍| 久久久噜噜噜久久人人看| 91久久精品一区二区二区| 麻豆freexxxx性91精品| 久久久综合网站| 在线日韩国产精品| 国产麻豆视频一区二区| 亚洲高清中文字幕| 国产精品天美传媒| 欧美日韩小视频| 成人国产精品视频| 免费在线观看一区二区三区| 国产精品久久久久桃色tv| 91麻豆精品国产| 91免费观看在线| 精品无码三级在线观看视频| 一级日本不卡的影视| 亚洲柠檬福利资源导航| 中文字幕中文字幕在线一区 | 午夜视频一区二区三区| 亚洲摸摸操操av| 亚洲美女视频一区| 亚洲免费高清视频在线| 亚洲精品中文字幕乱码三区| 中文字幕在线免费不卡| 亚洲视频免费在线| 一区二区三区四区在线| 亚洲成人免费观看| 五月综合激情婷婷六月色窝| 亚洲成人福利片| 视频一区二区中文字幕| 免费欧美日韩国产三级电影| 麻豆精品一二三| 国产一区二区三区免费观看| 国产精品亚洲第一区在线暖暖韩国| 国产一区二区美女诱惑| 国产成人夜色高潮福利影视| 成人网男人的天堂| 色婷婷综合久久久久中文| 欧美三级电影精品| 91精品在线麻豆| 久久亚洲精华国产精华液| 国产精品国产自产拍高清av | 国产精品国产a级| 亚洲成国产人片在线观看| 亚洲444eee在线观看| 美国精品在线观看| 国产成人在线网站| 91精品福利视频| 日韩午夜激情电影| 国产精品视频你懂的| 亚洲高清视频的网址| 国内精品在线播放| 91丝袜高跟美女视频| 欧美高清一级片在线| 国产亚洲欧美在线| 一区二区视频在线看| 蓝色福利精品导航| 91蜜桃在线观看| 日韩午夜精品电影| 亚洲人一二三区| 久久国产尿小便嘘嘘尿| 91在线一区二区| 欧美一级一级性生活免费录像| 久久久亚洲国产美女国产盗摄 | 国产精品白丝jk黑袜喷水| 99久久久国产精品| 欧美xxxx老人做受| 亚洲综合成人网| 国产毛片精品视频| 欧美日本不卡视频| 成人欧美一区二区三区1314| 热久久一区二区| 91蜜桃婷婷狠狠久久综合9色| 欧美成人官网二区| 亚洲成人综合视频| 91在线视频免费观看| 日韩欧美中文一区| 亚洲国产乱码最新视频| 成人午夜激情影院| 精品成人在线观看| 亚洲第四色夜色| 一本大道久久a久久综合婷婷 | 51精品秘密在线观看| 中文字幕中文在线不卡住| 久久成人免费日本黄色| 欧美体内she精视频| 国产精品黄色在线观看| 国产精一区二区三区| 日韩三级视频在线看| 亚洲国产精品视频| 色成人在线视频| 1024国产精品| 成人免费视频免费观看| 久久蜜桃av一区二区天堂| 麻豆免费看一区二区三区| 欧美福利视频导航| 午夜激情综合网| 欧美日韩免费一区二区三区| 亚洲色大成网站www久久九九| 成人性生交大片| 国产日产欧美一区二区视频| 国产一区啦啦啦在线观看| 日韩欧美视频一区| 久久超级碰视频| 欧美sm美女调教| 久久国产精品色婷婷| 日韩免费高清电影| 久久不见久久见中文字幕免费| 日韩欧美在线1卡| 国产在线精品一区二区不卡了| 日韩一级片在线播放|