⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listshellp.h

📁 `smith.motif.tar.Z includes the source code for the book "Designing X clients with Xt/Motif," by Je
💻 H
字号:
/**** listshellP.h ****//**************************************************************************A `ListShell' object is a Motif XmList widget in a shell.  Theapplication can specify whether the pop-up shell should disappearor stay active when the user selects an item from the list.Because it's in a pop-up shell, the application must call thelist-shell realize function.Sample usage:#include "listshell.h"......void main(argc, argv)int argc;char *argv[];{	void ListSelection(), ...;	Widget topLevel, ...;	ListShell list1, list2;	Arg args[10];	int i;	static char *seasons[] = {"Winter", "Spring", "Summer", "Fall", NULL};	XtAppContext app;	topLevel = XtAppInitialize(&app, "ApplicationClass",		(XrmOptionDescList) NULL, 0,		&argc, argv, (String *) NULL, (ArgList) NULL, 0);	list1 = listShell_create(topLevel, "ApplicationClass", "listShell1",		seasons, XmSTRING_DEFAULT_CHARSET, 0, 4, listShell_STAY_UP,		listShell_WIN_MGR_DECOR);	listShell_add_callback(list1, ListSelection, 1);	list2 = listShell_create(topLevel, "ApplicationClass", "listShell2",		seasons, XmSTRING_DEFAULT_CHARSET, 0, 2, listShell_NO_STAY_UP,		listShell_MIN_WIN_MGR_DECOR);	listShell_add_callback(list2, ListSelection, 2);	...	...	XtRealizeWidget(topLevel);	listShell_realize(list1);	listShell_realize(list2);	...	...**************************************************************************/#ifndef _listshellP_h#define _listshellP_h/*Private structure:*/typedef struct {	void *self;	Widget shell;	Widget instance;	Widget class;	Widget pane;	Widget commandBox;	Widget commandDismiss;	Widget port;	Widget list;	XmString *list_items;	int num_items;	int stay_up_behavior;} _ListShell;#endif /* _listshellP_h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -