Developing a User Interface > Customizing the User Interface |
ComponentOne Query supplies a built-in user interface, making implementing ad hoc functionality as easy as dropping a control on a form. In addition tothat, ComponentOne Query allows developers to customize user interface in a virtually unrestricted variety of ways:
If you need to localize or customize C1Query strings and menus, or customize colors, fonts and other presentation styles, it can be easily done using a special template mechanism, see Customizing the UI with Templates. This method is demonstrated in Tutorial 6 - Customizing the User Interface with Templates.
If you want to change the general layout of query display, it can be done modifying the script responsible for query display, see Customizing the UI with Scripts. Tutorial 7 - Customizing the User Interface with Scripts shows how to do this.
You can create your own UI on a Visual Basic form using any available controls and other means. See Creating Your Own UI. This is demonstrated in Tutorial 8 - Using C1Query Engine with Non-C1Query User Interface.
You can use C1Query in a Web application for generating SQL from user query data submitted from browser client, see Using C1Query on the Web.
ComponentOne Query object model allows you to programmatically access and set fields and conditions specified by the user, see Accessing and Modifying Query Items.
Using special events, you can provide your own custom editing and lookup for condition values based on data type and other attributes, such as special editors for date/time/currency and other types, custom lookup lists, and so on. See Custom Editing and Lookup for details.
ComponentOne Query object model allows you to customize different aspects of UI behavior with properties, methods and events. The following sections explain in more detail.