The CHT Blogger

Thanks for your interest in The Clarion Handy Tools, an awesome collection of productivity enhancements for Clarion developers. These tools consist of an ever-expanding set of Clarion Templates and OOP Classes that extend or complement the normal functionality of the Clarion Application Development System from SoftVelocity.

Sunday, April 5, 2009

Small Upated Posted to Build 13B1.00 April 4, 2009

We've posted a small update to Build 13B1.00 last night, April 4, 2009. This update is part of an ongoing series of changes and additions to our 13B1.xx, 2nd quarter CHT build.

New CHT Templates


In this update we've added three new templates called: Source_EmbedMAPIFunctions, Source_EmbedZipFunctions and Source_WriteZipCode_SEZF.

These three templates are a continuation of our Templates For ABC Source Procedures initiative discussed in our April 1, 2009 entry posted below on this page. The purpose of this set of templates - all template names starting with "Source_" - is to accommodate the ABC source code procedure which is missing most standard embed points and so is not a very flexible target for template-placed embed code.

New CHT Applications


With this update we've added two new demo applications called: HNDSOURCESMTPDEMO.APP and HNDSOUCEMAPIDEMO.APP.

The purpose of these small demo apps is to illustrate the suite of "Source_" templates which at this point includes eight new templates. More demo apps of this sort will appear during this quarter to illustrate all "Source_" templates available so far. I also have several new "Source_" templates in mind for this quarter and they
too will eventually get separate demos or they will be incorporated into the existing demos.

PopUp Menu Demo Jazzed Up


We spent a few minutes "jazzing" up
HNDPOPUPMENUDEMO.APP
mentioned in our April 1, 2009 entry and have added menu-based calls to also raise the popups embedded under the window buttons by our template. That application now looks as follows:

hndpopupmenudemo_2.bmp


C7 News


We've been slowly adding to our suite of C7 demo applications. Eventually we want all but a couple of CHT demo and utility applications to be available in both C6 and C7 format. We've dragged our feet on a few of these while waiting for a C7 bug fix (a PTSS Item I posted) that seems to be taking its time. It's not a serious
bug but an irritating one since we tend, in C6, to often use an equate, HPROP:AppVersionEx, in the title bar of our windows. C6 doesn't have a problem with this. But apps that contain anything but text in the window title are a problem for C7 during the conversion process. C7 reports Constants and Variables used in your window title bar as errors, so that after conversion, you need to go to the window and edit the title bar back to text.

Long-time CHT user, Robert Barton, alerted us yesterday that when CHT was registered in C7 he was unable to import from another application without encountering a UHE. It appears that when C7 initializes the the template registry in preparation for import, it runs the #SYSTEM code in our template. Since this has always worked just fine in C6 we had to write a workaround to accommodate C7. So as of this update you're able to import from other C7 applications without encountering any problem. We'll raise a C7 bug report to PTSS to explain what causes the UHE and request a fix.

Just a reminder once again, when you do a C7 update, don't forget to run one or the other of our C7 installers to bring our classes and templates up to date after the C7 re-installation.

That's all for now.

Cheers...

Gus Creces
The Clarion Handy Tools Page
www.cwhandy.com
support@cwhandy.com
April 4, 2009

New Build Released 13B1.00 April 1, 2009

As of April 1, 2009 now you're able to download the latest build numbered 13B1.00.

New Templates In Build 13B1.00


More Support For ABC Source Code Procedure Template

We've made it easier to add some of CHT's low-level classes to your procedures built with the ABC source procedure template. In this build, we've added the following templates: Source_EmbedDateFunctions,Source_EmbedDiskFunctions, Source_EmbedUtilityFunctions, Source_EmbedEncryptionFunctions.

ABC source procedures don't have the normal range of embed points provided in ABC window-based procedures, so in order to attach classes in which derivation is automated the way it is in all other ABC procedures, a special template
is required. These four templates provide that special design. You're able to see the class functions inside the procedure and you are able to embed code inside these methods the same way you can in a Window, Browse, Report and Process template. All four are extension templates so they're added to your source procedure via the IDE extensions interface.
source_templates.gif


Soon we'll give you at least one example application using these templates to illustrate what you can do with them.

New Pop-Up Menu Template

This build, we've given you a Pop-Up menu template called HandyPopUpMenuButton. With this template you're able to easily build pop up menus which include images. The template provides a button control which is used to trigger the pop up menu. Clever developers know that they really don't need to display this button to make it work for them. By simply hiding the button, and posting EVENT:Accepted to it from any other control or from an embed in your procedure, the pop up menu can be made to do what you've set it up to do.

handypopupmenu2.gif

handypopupmenu1.gif


For an example application illustrating HandyPopUpMenuButton look at HandyPopUpMenuDemo.

Windows Services Template Revised

We've revised the HandyNTServiceFunctions template with a switch which when checked, makes the window service "silent" whenever it is installed or removed. In the previous version of this template, the service displayed messages when it was first installed and when it was removed. While displaying messages is still the default mode of operation, now you can suppress the messages if you choose to (see image).

handyntservicefunctions.gif


Look at application HndWindowsServiceDemo.APP for an example illustrating use of this template. While we were at it we also fleshed out this functionality in-code by adding two commands /ISQ (install service quietly) and /RSQ (remove service quietly). The image that follows is from the service application's interface. We use this application set for 3:30 AM daily, to back up our tool kit source code by having it start HNDFSYNC.APP, passing it a sync control file called hndfsync_driveo.tps.

hndwindowservicedemonew.gif


For a full review of new and revised templates so far in 2009, follow this link: New/Revised Templates YTD 2009.

Cheers...

Gus Creces
The Clarion Handy Tools Page
www.cwhandy.com
support@cwhandy.com
April 1, 2009