Resource library RsrcFree() RsrcFixCicon()
Programming guideline of WinDom

RsrcXtype()

NAME

RsrcXtype - Install/remove extended objects.

PROTOTYPAGE

void RsrcXtype( int mode, OBJECT **trindex, int ntree);

PARAMETERS

mode:

  • RSRC_XTYPE : install new type for objects having an extended type,

  • RSRC_X3D : install new type for all objects,

  • RSRC_XALL : cumul previous modes,

  • O : uninstall all new types.

trindex:
address of all object tree or NULL,

ntree:
number of object tree in the memory resource.

DESCRIPTION

RsrcXtype() creates the special WinDom extended objects. It can work on internal resource, loaded by RsrcLoad() or on external resource, include in the C-source during the compilation.

The mode parameter how new objects are installed. Mode RSRC_XTYPE install new type for objects having an extended type. Avalaible extended types are describe in section Extended types. There is a second mode, RSRC_X3D, which installs new object types with a 3D look for all objects. The goal of this mode is to allow your dialog boxes to have the same aspect with MagiC, Naes, TOS or any other GEM system. Addressed objects are buttons and boxes without extended types. And off course, these two modes can be cumulated (mode RSRC_XALL).

To fix the objects in the internal resource, the trindex parameter must set to NULL and the trindex parameter is not used. To fix an external resource, the trindex parameter should be filled with the address of object trees in the resource. This address is supplied with the RSH file created by your resource editor. The RSH file must be include in your source code with an #include directive. The ntree value is also supplied with the RSH file.

When the application finish, extended object should be freed by a call to RsrcXtype() with mode 0.

SEE ALSO

Extended types for objects