#include <drawctl.h>
Public Member Functions | |
wxCamDrawControlXmlHandler () | |
Constructor. | |
virtual wxObject * | DoCreateResource () |
Creates a wxCamDrawControl from XML. | |
virtual bool | CanHandle (wxXmlNode *node) |
Determines whether or not we can handle an object type. |
Definition at line 228 of file drawctl.h.
|
Constructor.
Definition at line 330 of file drawctl.cpp. 00330 : wxXmlResourceHandler() 00331 { 00332 XRC_ADD_STYLE(wxCDCS_DEFAULT); 00333 XRC_ADD_STYLE(wxCDCS_SETCLIPRECT); 00334 AddWindowStyles(); 00335 }
|
|
Determines whether or not we can handle an object type.
Definition at line 387 of file drawctl.cpp. 00387 : Correct*/ wxCamDrawControlXmlHandler::CanHandle(wxXmlNode *node) 00388 { 00389 bool fOurClass = node->GetPropVal(wxT("class"), wxEmptyString) == wxT("wxCamDrawControl"); 00390 return fOurClass; 00391 00392 // This doesn't work on some compilers (although it is identical to what's above 00393 // just not in a function implemented in a header) 00394 // return (IsOfClass(node, wxT("wxCamDrawControl"))); 00395 }
|
|
Creates a wxCamDrawControl from XML.
Definition at line 353 of file drawctl.cpp. 00354 { 00355 XRC_MAKE_INSTANCE(control, wxCamDrawControl); 00356 control->Create(m_parentAsWindow, 00357 GetID(), 00358 GetPosition(), 00359 GetSize(), 00360 (GetStyle() & ~wxBORDER_MASK) | wxNO_BORDER, 00361 wxDefaultValidator, 00362 (wxCamDrawControlStyle)GetStyle(_T("camdrawstyle")), 00363 GetParamValue(_T("optoken")) 00364 ); 00365 00366 SetupWindow(control); 00367 00368 return control; 00369 }
|