1 #ifndef _STRING_SCROLL_WHEEL_SERVICE_PROVIDER_
2 #define _STRING_SCROLL_WHEEL_SERVICE_PROVIDER_
3 
4 class string_scroll_wheel_service_provider : public text_scroll_wheel_service_provider
5 {
6 public:
7     string_scroll_wheel_service_provider();
8 
GetType()9     virtual int GetType() { return GX_TYPE_STRING_SCROLL_WHEEL; }
GetTypeName(widget_info *)10     virtual CString GetTypeName(widget_info *) { return CString("GX_TYPE_STRING_SCROLL_WHEEL"); }
GetShortName()11     virtual CString GetShortName() { return CString("string_scroll_wheel"); }
12     virtual CString GetVarDeclaration();
GetControlBlockName()13     virtual CString GetControlBlockName() { return CString("GX_STRING_SCROLL_WHEEL"); }
14 
15     virtual CString DeclarePropertiesStruct();
16     virtual CString WriteExtendedProperties(screen_generator *gen, CString &scope, widget_info *info);
17     virtual CString GetCreateFromDefFunctionName();
18     virtual CString GetCreateFromDefFunction(int version);
19 
20     virtual widget_info *CreateNewInstance(GX_WIDGET *parent);
21     virtual GX_WIDGET *GenerateFromInfo(GX_WIDGET *parent, widget_info *info);
22 
23     virtual void SaveToProject(xml_writer &, studiox_project *project, int display, widget_info *);
24     virtual void ReadFromProject(xml_reader &, studiox_project *project, int display, widget_info *info, ULONG valid_styles);
25 
26     virtual void AssignScrollWheelInfo(widget_info *info, scroll_wheel_info *wheel_info);
27     void StringEditEnableDisable(widget_info *info, BOOL enabled);
28     static void InitStringIdListArray(GX_RESOURCE_ID *string_id_list, int total_rows, CArray<GX_RESOURCE_ID> &string_id_list_array);
29     void CreateStringIdList(widget_info *info, CArray<GX_RESOURCE_ID> &string_id_list_array);
30 
31     virtual void AssignText(widget_info *info, int index, GX_RESOURCE_ID string_id);
32     virtual void Autosize(widget_info *info);
33 };
34 
35 #endif
36