Recently I was working with JP to make some adjustments to the AccessoryMenu addin so he could have the Accessory sub menu at the top instead of the bottom of the help menu. While I was in there I decided to make a few more tweaks and add some support for translations.

I have uploaded the VS source code as well as the compiled binaries to Google Project Hosting in case anyone wants to play – https://code.google.com/p/clarion-accessory-addin/

Note: This has not been approved by the Clarion 3rd Party Association as an official update to the Clarion7 install standard so please use your common sense when considering this addin! I wanted to make the source available so that if there is interested perhaps others would like to contribute.

Other Note: I am also evaluating Google Project Hosting as a possible destination for the source of all the other addins. They are currently being hosted on http://www.assembla.com/ but the google option looks like it has pretty sweet support for open source projects which I think is what I want to do with the current addins. I would love to hear your thoughts, leave a comment or send me an email.

Thanks to Eric on the CW-TALK2 chat for identifying this bug. With his instructions on how to replicate it I was able to find a workaround.

I have reported the error to SoftVelocity (PTSS#37709). Until they bring out a fix I suggest that you try to not use F1 in such a way that will call the help with a blank keyword or just stick to using Shift+F1 while in the editors!

Scroll to the bottom for the download link or read on for some details of the issue…

The problem:

Help file can hang/freeze requiring an end-task on the clarion.exe process

Steps to repeat:

  1. Open People.sln (Generate it once) Open People.clw
  2. Select a keyword (eg. MODULE) Press F1, click in C7 (help stays open)
  3. Select a keyword (eg. PROCEDURE) Press Shift+F1, click in C7 (help opens with topics found)

Analysis:

It turns out that the problem is not actually down to any kind of interaction between the built in F1 and my Context Help addin but in fact what seems to be a bug in either HTML Help control or the .Net Help.ShowHelp method. The problem can be duplicated using just the built in F1 or just my addin or, of course, both!

If the very first time you call Help.ShowHelp when the 4th parameter is either null or String.Empty then a subsequent call to Help.ShowHelp that requires the “Topic Found” dialog will cause the HTML Help control to hang/freeze.

So instead of just calling the help like this:

I have changed it to be this:

(I chose “Special Characters” pretty much at random, it could be anything just as long as it isn’t blank!")

-brahn

Download: download ClarionEditorContextHelp.sdaddin
Version: 0.2
Updated: June 3, 2011
Size: 5.05 KB
Downloads: 813

Thanks very much everyone who has made a donation, the response to these addins has been fantastic and very motivational!

I started out working on the addins as a way to learn C# with a real world project. The more I learn the more potential I see in the new Clarion IDE and hopefully the end result is an improvement to the clarion experience for everyone!

As a special thankyou to all those wonderful people who have made donations I now bring you back a little something from clarion history… the Blue Fart returns!

 

image

 

(A link will be sent via email. If you don’t get one and you have made a donation please let me know)

 

-brahn

Back in November last year I released the SearchPadExtras addin which added a couple of extra buttons to the search pad. After a request on the news groups this is an update which includes some new buttons which can be used to launch the standard search/replace dialog.

The main problem seems to be that the Control+F keystroke is not passed back to the IDE when you are in the clarion procedure tree (or probably several other parts of the “appgen” areas). These buttons are just duplicates of what you already see in the Search menu of the IDE but having them in the search pad might put them in a more useful context 🙂

 

image

-brahn

Download: download SearchPadExtras.sdaddin
Version: 0.2
Updated: June 3, 2011
Size: 3.98 KB
Downloads: 682

While working in C7 today I realised that context help doesn’t work from the emeditor (or PWEE or whatever it is called). Interestingly it does work if you are in a plain vanilla source file (INC, CLW, TPL, TPW, etc), thanks MarkS for the tip.

Anyway, a bit of effort later and a lot more .net learning here we have functional context sensitive help in the embeditor! (Use Shift+F1 instead of just the regular F1)

 

image

 

-brahn

Download: download ClarionEditorContextHelp.sdaddin
Version: 0.2
Updated: June 3, 2011
Size: 5.05 KB
Downloads: 813