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.

Friday, May 16, 2008

Build 12B1.00 - Minor Update Posted

I've posted some changes for the 12B1.00 Build, to fix some reported problems since the May 1st posting. These changes are minor and do not warrant a version number change.

The ABCBrowseRecordTaggerEx template should work correctly now with either hot key, MouseLeft or MouseLeftUp. In the prior release, the ABCBrowse would not select correctly when the hotkey used was MouseLeft. It did work correctly with MouseLeftUp. I've changed the hotkey selection mechanism on all XXXRecordTaggerEx templates to a dropdown from the built-in template alert key mechanism which does not provide for the easy insertion of MouseLeftUp as a standard alert key.

I could not reproduce the Calculator problem reported here by one user no matter where I tried it, so I think that may be isolated to the fact that he was using an older Clarion 6 version. The threaded calculator uses an ANY variable as the data transfer mechanism across threads and I've added an explicit CLEAR to initialize that variable. Earlier versions of Clarion 6 did require this, though the present version does not, since ANY variables are now implicitly initialized by Clarion itself.

Terry I've posted with this update the HNDSTRLB.CLW changes that you requested in these two functions:


HndStrLib.CStringToWideString PROCEDURE (*CSTRING xIn, *STRING xpOut, LONG xCodePage=0)
HndStrLib.WideStringToCString PROCEDURE (LONG xlWide, *CSTRING xOut, LONG xCodePage=0)


These functions work as before if you do nothing. However, you can now add a 3rd parameter providing a code-page value to have the correct code-page translation applied if you supply the code-page number. I've added specific CHT equates to handle the code-pages you asked about:


HND_CP_UTF8 EQUATE (65001) ! UTF-8 translation
HND_CP_GB2312 EQUATE (936) ! Chinese Simplified
HND_CP_Big5 EQUATE (950) ! ANSI/OEM Traditional Chinese (Taiwan; Hong Kong SAR, PRC); Chinese Traditional (Big5)


You should be able to use any code-page number or combination in the 3rd parameter as required by the language in use.

Terry, since I haven't got any reliable way to test this myself, I'm relying on you for feedback as to whether this works to your satisfaction.

I've included fresh copies of all pre-compiled apps located in /3rdparty/hnd/ including HNDSCRPT.EXE since I neglected to do that in the last update. Also included are the following apps compiled with the latest version of C7: HNDZIPNFTP.EXE, HNDZIPNEMAIL.EXE and HNDHTTPZIPNPOST.EXE. These are supplied purely as a reminder that CHT is fully C7 compatible.

Take a look also at HNDCMP.EXE - the CHT Compile Manager - since it now implements a couple of the new templates: HANDYMARKERBROWSEROWMOVEBUTTONS and HANDYMARKERBROWSERECORDTAGGEREX.

In the prior release, a few of the demo apps had dictionary paths embedded in them. If I'm not careful to remove the dictionary path from our demo apps, those of you with clarion installed somewhere other than c:/clarion6/ can have problems compiling the demo apps. I've gone through all demo apps to make sure that dictionary paths were removed so all apps assume that the .DCT is located in the same directory as the application itself. This is how it's supposed to work.

Cheers...
Gus Creces
The Clarion Handy Tools Page
Visit Website

No comments: