Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXObjectLoader Class Reference

Dynamically load an FXObject based object. More...

#include <FXObjectLoader.h>

Inheritance diagram for FXEX::FXObjectLoader::

FXEX::FXBaseObject FXObject List of all members.

Detailed Description

Dynamically load an FXObject based object.

Dont forget to call create() on the returned object...

You may be wondering why there are three functions to choose from..?? Well, its because FXWindow derived widget can be automatically attached to a parent widget. FXBaseObject's can also be create()d into a working object... FXObject is the fallback case...

To derive from this class, just define your 'get object' method, which simply casts the return result from one of these functions. eg:

class MyWidgetLoader : public FXObjectLoader { FXDECLARE(MyWidgetLoader) public: MyWidetLoader(const FXString& filename) : FXObjectLoader(filename) { open(); } MyWidget* getMyWidget(FXComposite *p) { return (MyWidget*) getFXWindow("MyWidget"); };

Definition at line 69 of file FXObjectLoader.h.