[Top] [Prev] [Next] [Index]
Page 22 out of 84 total pages , Page 5 out of 6 pages in this chapter

Fetch Functions

The fetch function is called by Builder Xcessory when it wants to obtain the current value displayed in the resource type editor. The fetch function does what is necessary to convert the value currently being displayed to a string representation, and returns that value to Builder Xcessory. You can convert the returned string to the proper resource type by using the Xt resource conversion mechanism.

EditorFetchFunc function prototype

The fetch function has the following function prototype:

char * EditorFetchFunc(Widget wgt, XtPointer data)

wgt Widget that is above the top-level container of your resource type editor. For an extended editor, wgt is the shell widget containing the editor. For a simple editor, wgt is the parent widget of your top-level container.

data Pointer value that you supplied in the creation function. If you did not specify a value, data is NULL.



[Top] [Prev] [Next] [Index]
Page 22 out of 84 total pages , Page 5 out of 6 pages in this chapter

info@ics.com
Copyright © 1998, Integrated Computer Solutions, Inc. All rights reserved.