RESTYPE_WPROPS Usage | developer.brewmp.com RESTYPE_WPROPS Usage | developer.brewmp.com

Developer

RESTYPE_WPROPS Usage

Does anyone know how to use RESTYPE_WPROPS? Following is from the widget help file but there is no sample on how to use it.

IResFile supports standard resource file types listed in AEEShell.h (ResType enum). In addition, IResFile supports the following:

RESTYPE_WPROPS: A collection of properties (ID / value pairs), 8 bytes each (4 bytes ID, 4 bytes value)

IRESFILE_GetNamed() can be used to retrieve objects of type RESTYPE_WPROPS

What I am looking for is following:

1. How to define a widget property (e.g. fore color) in LUA file?
2. How to use IRESFILE_GetNamed() / IWIDGET_SetProperties() to apply these widget properties to actual widgets?

SD

The only tool that builds a resource file with WProps is the theme compiler. So the only way to use WProps is to use themes.
-Erik

The only tool that builds a resource file with WProps is the theme compiler. So the only way to use WProps is to use themes.
-Erik