1 #ifndef _VSCROLL_SERVICE_PROVIDER_ 2 #define _VSCROLL_SERVICE_PROVIDER_ 3 4 class vscroll_service_provider : public widget_service_provider 5 { 6 public: 7 vscroll_service_provider(); 8 GetType()9 virtual int GetType() {return GX_TYPE_VERTICAL_SCROLL;} GetTypeName(widget_info *)10 virtual CString GetTypeName(widget_info *) {return CString("GX_TYPE_VERTICAL_SCROLL");} GetShortName()11 virtual CString GetShortName() {return CString("vscroll");} 12 virtual CString GetVarDeclaration(); GetControlBlockName()13 virtual CString GetControlBlockName() {return CString("GX_SCROLLBAR");} 14 DeclarePropertiesStruct()15 virtual CString DeclarePropertiesStruct() {return CString("");} 16 virtual CString WriteExtendedProperties(screen_generator *gen, CString &scope, widget_info *info); 17 18 virtual CString GetCreateFromDefFunctionName(); 19 virtual CString GetCreateFromDefFunction(int version); 20 21 virtual void SaveToProject(xml_writer &, studiox_project *project, int display, widget_info *); 22 virtual void ReadFromProject(xml_reader &, studiox_project *project, int display, widget_info *info, ULONG valid_styles); 23 24 virtual widget_info *CreateNewInstance(GX_WIDGET *parent); 25 virtual GX_WIDGET *GenerateFromInfo(GX_WIDGET *parent, widget_info *info); 26 27 virtual void AssignPixelmap(widget_info *info, int index, GX_RESOURCE_ID pixmap_id); 28 virtual void Autosize(widget_info *info); 29 30 static void ReadScrollbarAppearance(xml_reader &reader, studiox_project *project, int display, GX_SCROLLBAR_APPEARANCE &appear); 31 static void WriteScrollbarAppearance(xml_writer &writer, studiox_project *project, int display, GX_SCROLLBAR_APPEARANCE &appear); 32 }; 33 34 #endif 35