![]() |
||||||
| SCA Micro Templates | ||||||
|
Documentation |
||||||
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.
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:

| "Ascending" symbol: | Used when the column is the current sort order and order is ascending |
| "Descending" symbol: | Used when the column is the current sort order and order is descending |
| "No sort" symbol: | Used when the column is not the current sort order, but it's available for clicking. |
| If you click on these buttons, they populate some common choices of symbols on the previous prompts. | |
![]() |
These are the keycodes which will change the sort order. "Click on header and "DoubleClick on header" are mutually exclusive. "CtrlClick/ShftClick/AltClick" work anywhere in the column. |
![]() |
Select the column which is linked to the default sort order. Specify if you want the symbol at the left or right of the column header. If you are using a locator for the default sort order, select it, and it will be hidden when using a different sort order. |
![]() |
![]() You need to press the Insert button for each one of your additional sort orders. For each sort order you need to enter the key used, the linked columnd, and if you are using a locator for that sort order, the locator control. |
There are two ways to use this template:
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.
TIf you need help, please visit our site at http://sca.com.mx/clarion/ or contact carlosg@sca.com.mx