SCA Micro Templates

  • Documentation
  • Introduction

    The S.C.A. Micro Templates were developed to add value to your applications by integrating small but very useful and attractive features.

    The Browse Header Sort and Reverse Sort template, adds let's the user change sort orders by clicking on columns' headers, while allowing the developer to have full control of each sort order, by using the "Default Behavior/Conditional Behavior" of the standard ABC templates. Clicking again in a selected column, makes the browse display records in reversed order.

    The Auto Next-Tab templates helps the use to enter data in fields which are populated in multiple tabs, by automatically selecting the first field in the next tab when the user accepts the last field in the current tab. The developer can populate this extension template at the procedure level, or, to save time, at the Global level, and the template will only generate code when there are two or more tabs in a window.

    The XP Controls Enable is a global template whose only function is to include a precompiled resource file which tells Window XP that the application can handle the new style XP controls. This gives the application a modern look when running on Windows XP.

    Installation

    The installation is handled by the setup program scamicroinstall.exe you downloaded after buying the templates. This setup program does the following steps (depending on the options you selected):

    Browse Header and Reverse Sort

    To add this template to your application, follow these steps:

    Auto Next-Tab

    There are two ways to use this template:

    1. At the procedure where you want this functionality, enter the "Extensions" section, press the "Insert" button and select "S.C.A. - Auto Next-Tab". The template has two checkboxes you should only enable if you are using one of the "Enter=Tab" templates
    2. If you prefer to add this feature to all your application, populate it at the "Global" - "Extensions" option, selecting the template "Auto Next Tab Global Enable". This template has the same prompts, and will automatically populate the template for all the procedures in your application. This template will only generate code when there are two or more tabs in the window.

    XP Controls Enable

    This template must be populated at the "Global" - "Extension" option, and has no prompts. Select the template "S.C.A. - Enable XP Controls". Your resulting application will have this look:

    Warnings:
    - This new look will only work if you run the application in a computer running Windows XP. You won't have any problem if you run the application on any other Windows version, but you'll get the traditional look.
    - This feature
    won't work with controls with the "transparent" attribute. This can be a problem if you are using background images in your windows.
    - If the Clarion button has an Icon, it won't get the new look. You should use Icetips MagicButtons for this.
    - Depending on how is your shortcut to Clarion configured, you won't see the new look if you run your application using the Compile&Run button of the Clarion IDE. In this case, run the application using the Windows Explorer or try disabling the compatibility options of your Clarion shortcut.
    Note:
    - This template works with Legacy templates.

    Support

    TIf you need help, please visit our site at http://sca.com.mx/clarion/ or contact carlosg@sca.com.mx