예제 #1
0
	void __fastcall PACKAGE Register()
	{
        	std::auto_ptr<TEMSResourceAttributes> attributes(new TEMSResourceAttributes());
                attributes->ResourceName = "Notes";
                attributes->ResourceSuffix["GetItem"] = "{item}";
                attributes->ResourceSuffix["PutItem"] = "{item}";
                attributes->ResourceSuffix["DeleteItem"] = "{item}";
  		RegisterResource(__typeinfo(TNotesResource1), attributes.release());
	}
예제 #2
0
  void __fastcall PACKAGE Register()
  {
	TComponentClass classes[1] = {__classid(TPie)};
	ActivateClassGroup(__classid(Controls::TControl));

	GroupDescendentsWith(__classid(TPie), __classid(Controls::TControl));
	RegisterComponents(LoadStr(Tab_101), classes, 0);
	RegisterComponentEditor(__classid(TPie), __classid(TPieEditor));
	RegisterPropertyEditor(__typeinfo(TAngles),
						   NULL,
						   "",
						   __classid(TAnglesProperty));
  }