SRP Utilities Update, Version 1.3

 

Once again SRP delivers features that OpenInsight developers can really use. We begin by addressing what amounts to be a branding and marketing problem for software products based upon OpenInsight. The issue occurs when Windows groups icons in the taskbar. Once this occurs, the button's title becomes "oinsight", even if the application was using the SRP Application Launcher utility. This is undesirable for commercial products since users usually have no idea what "oinsight" is. With the new SRP_Taskbar method we can alter the group button text to be anything we wish, thus preserving a software product's essential branding.


SRP Editor Update, Version 2.3.5 & 2.3.6

 

The SRP Editor saw a new update last week, another minor fix to the code formatter, resulting in version 2.3.5. However, before we could get around to announcing it, we made a much needed improvement to the SRP Editor's command line.

Our command line has always suffered when it comes to executing built-in routines. To give you some background, when you run any routine, the SRP Editor command line opens the routine's object code and determines how many parameters the routine expects. If you pass too few parameters, the SRP Editor passes null values for all the missing parameters to avoid potential VNAV errors. This, of course, only works for routines that exist in object code and list their parameters. For all other routines, the SRP Editor command line just sends the parameters you provide.

This becomes a headache when using common built-in routines such as COPY_ROW. COPY_ROW hates missing parameters, and you'll get a VNAV error if you forget even one. If permitted, we'd like to appeal to the old saying, "Better late than never."

The SRP Editor 2.3.6 now ships with a default list of routines and their parameter counts. You can browse or modify this list in the new TCL tab of the Options dialog. Don't worry about modifying the list, the SRP Editor will never overwrite your changes. Most users will not really need this as the most important built-in routines are already there, including COPY_ROW.

SRP Editor 2.3.6 is now available to download from here.


SRP Editor Update, Version 2.3.4

 

'Tis the season for...SRP Editor updates. One of our customers has a knack for finding issues with our code formatter. In this most recent scenario, it appears that our formatting logic was failing to ignore a "for" statement when it was located within a commented line. As a result the remaining code was being improperly intended. SRP Editor 2.3.4 has addressed this and is now available to download from here.


SRP Editor Update, Version 2.3.3

 

We recently received a report that the SRP Editor would produce the above error message when attempting to close a record with unsaved changes. When we looked at the code we discovered that this issue would only happen when the Window -> Close All menu option was selected.

The fix required less effort than creating a new install. Nevertheless, we dislike problems with our products no matter how trivial they are. Therefore we have fixed this in SRP Editor 2.3.3 and posted it here.


SRP Utilities Update, Version 1.2.3

 

SRP Utilities has been enhanced yet again with SRP_Join_Arrays. This function is useful for those of you that implement your own cross references. On several occasions, the developers at SRP Computer Solutions, Inc. have found themselves with two lists of keys they would like to merge. Sometimes, they need to get the keys that appear in both lists: an intersection. Other times, they need to merge both lists together without duplications: a union. SRP_Join_Arrays can do this for you at top speeds.

This version of SRP Utilities also contains a bug fix. SRP_Clean_Array has a TRIM option that--per the documentation--is supposed to remove only trailing blank elements from the array. This was not happening. Instead, it was removing all blanks in the array. This error has been corrected.

If you are currently using version 1.2.2 or earlier, we highly recommend upgrading. Both existing users and those that wish to try this free utility can download the latest version of SRP Utilities from here.


Did You Know - Managing RDKs from the SRP Editor

Like most developers, the programmers at SRP Computer Solutions, Inc. love making tools that simplify complex tasks and make us more productive. With so many tools, it was only a matter of time before we created a tool to help manage our tools, specifically, the deployment of our tools.

Repository Deployment Kits (RDKs) are the means by which we deploy our tools such as SRP Editor, SRP Utilities, etc. As such, we found ourselves expending a lot of time and effort on just the RDK management. Maintaining RDKs requires several steps and a separate tool. Since we spend so much time in the SRP Editor, it seemed natural to enhance the SRP Editor with time saving RDK tools. This thought process led to the "Add to RDK" menu and the RDK command.

Add to RDK

The "Add to RDK" tool is accessed via the Tools menu or by pressing F6.


Did You Know - Accessing Images from Compressed Folders

 

OpenInsight's BITMAP property allows developers access images by path name or from within a resource file (.DLL or .EXE):

// Pull image from a path.
Set_Property(Ctrl, 'BITMAP''BMPS\Check.png')

// Pull image from a resource file.
Set_Property(Ctrl, 'BITMAP''Images.dll#check')

Storing images within a resource file makes an application more professional and prevents the curious end user from modifying the images stored on the hard drive. However, many developers are unfamiliar with the technology necessary to manage images from within a resource file. Most software development kits provide tools for this. If you are unfamiliar with (or would rather not learn) these SDKs there are simple utilities that can be downloaded to make this relatively easy (e.g. one that seems to work well is Resource Hacker.)

As might be expected, all SRP ActiveX image based properties can load images from a path or resource file. However, for developers who like the idea of using a single file to store all their images but would rather not fiddle with resource files there is another option: zip files. Developers can put all of their images into a zip file (aka compressed folder) and use the same syntax to reference them. The .zip extension can even be renamed to obscure this even more:

// Pull image from a zip file.
Set_Property(Ctrl, 'OLE.Images''Images.zip#check')

// Pull image from a zip file (extension renamed).
Set_Property(Ctrl, 'OLE.Images''Images.fil#check')

Don't forget that the entire SRP ActiveX control suite and OLE Help documentation can be downloaded from here. These are fully functional controls but will display an evaluation message without a license file.


Did You Know - Using the TabColors Property

In a recent article we highlighted the stunning Color Fill feature that many developers might not have been aware of. Several controls were demonstrated in that article. One example that was not pictured was the SRP Tab control, which will be the focus of this article.

There are two reasons which inspired me to highlight the SRP Tab control. First, being one of our very first ActiveX controls, it has received very little attention in recent years. Second, while doing an application review the other day I came across a window that instantly caught my attention:


SRP Utilities Update, Version 1.2.2

 

A customer recently discovered a glaring bug in our SRP_Hash method, which in hindsight was introduced with the release of version 1.2. In that version, we had made a change to the DLL function signature used by SRP_Encode. Much to our embarrassment, we forgot to updated SRP_Hash, which uses this same DLL function in order to conveniently encode your hashes. As a result, SRP_Hash would break to the debugger, indicating that an insufficient number of parameters was being passed to the DLL function in question. This unfortunate error on our part has been corrected in this release. We certainly apologize to anyone this may have inconvenienced.

If you are currently using version 1.2 or 1.2.1, we highly recommend upgrading. Both existing users and those that wish to try this free utility can download SRP Utilities 1.2.2 from here.


Did You Know - Using the Color Fill Property Type

With the proliferation of so many 'home improvement' type television programs it is hard not to discover how important color is for both aesthetic and functional purposes. Many of the same principles apply to software design as well. However, like home owners with little experience in interior design, many OpenInsight developers struggle to create a visual experience that is both intuitive and attractive. To make matters worse, modern systems commonly incorporate desktop themes and gradients as seen in the My Computer window below:

OpenInsight's out of the box toolkit is somewhat limited in this area, making it challenging for the developer to offer these kinds of visual enhancements. One popular work-around is to create (or download) custom images and use them with PUSHBMP or BITMAP controls in very creative ways. While this helps, it doesn't provide true theme support. Quite often these images use background colors to blend with the form. This works well while the user stays in the same theme. Once this is changed the well-crafted image looks glaringly out of place. This problem was one of the primary reasons SRP began developing ActiveX controls.

Now, in addition to support for Transparency, Alpha Channel, RGB/HSL colors, System colors, MS Office colors, and HTML colors, SRP ActiveX controls give the developer custom Gradient options via the Color Fill property type. Since all of the above are fully documented in our SRP OLE Controls help document (available with our fully functional evaluation suite of ActiveX controls), this article will focus on a few examples in hopes that it will inspire you to greater visual awesomeness.


Syndicate content