Tearoff header  
Version version number
CapeSoft Software Copyright
www.capesoft.com
Updated 7 January 2004
     


Contents
  bullet License &Copyright  
bullet Introduction
bullet Features
bullet Support
bullet Installation
bullet Adding a Tearoff to your Application
bullet Using Tearoff when your Application is running
bullet Options for the Tearoff template : Frame
bullet Options for the Tearoff template : Toolbox
bullet Advanced: View Toolbox Menu Item
bullet Examples
bullet Tips & FAQ 
bullet Version History
     


horizontal rule

bulletLicense & Copyright

This template is copyright © 2009 by CapeSoft Software (Pty) Ltd.  None of the included files may be distributed. Your programs which use Tearoff can be distributed without any Tearoff royalties.

Each developer needs his own license to use Tearoff. (Need to buy more licenses?)

This product is provided as-is. Use it entirely at your own risk. Use of this product implies your acceptance of this, along with the recognition of copyright stated above. In no way will CapeSoft Software (Pty) Ltd, their employees or affiliates be liable in any way for any damages or business losses you may incur as a direct or indirect result of using this product.

horizontal rule

bullet Introduction

Derek kept moaning about a feature he saw on an Apple Mac 15 years ago. In those days you were able to 'tear off' a menu item and add it to a hot list. This was useful when you had a handful of menu items you often called, but which were scattered and buried all over the place. We couldn't add this feature to existing Windows programs, but at least it's now available in his, and our, past, current and future Clarion applications.

One good thing leads to another, and after using it in-house for a couple of months we've refined the idea a bit, and added a couple of minor features.

The challenge was to make it trivial to implement (it takes about 30 seconds), and easy to use - and we think we succeeded on both counts.

It's a simple feature - but try it in a program you actually use, it really does save a lot of effort...

horizontal rule

bullet Features

horizontal rule

bullet Support

Your questions, comments and suggestions are welcome. Check our web page ( www.capesoft.com) for new versions. You can also contact us in one of the following ways.

CapeSoft Support
  Email support@capesoft.com  
Telephone +27 21 715 4000
Fax +27 21 715 2535
Post PO Box 511, Plumstead, 7801, Cape Town, South Africa
     


Tearoff is available for purchase at $49 from:

CapeSoft Sales
  Web www.capesoft.com  
Email sales at capesoft dot com 
Telephone +27 21 715 4000
Fax +27 21 715 2535
Post PO Box 511, Plumstead,7801, Cape Town, South Africa
     


Buy Online
  Web  
 
 
 
 
     

horizontal rule

bulletInstallation

1. Run the supplied installation file.

horizontal rule

bulletAdding a Tearoff to your Application

Adding a Tearoff to your Application is easy.

1. While the App is Open go to the Application menu and select the Template Utility option.
2.
If your App is an ABC app then select the Import Tearoff Toolbox ABC item in the Tearoff class. If the App is based on the Clarion (Legacy) template set then select the Import Tearoff Toolbox Legacy item. This adds a Window procedure called TearoffToolBox to your application.
3. Open the Frame Procedure.
4.
Go to the Extensions. Click on Insert.
5.
Select Activate CapeSoft Tearoff from the Class Tearoff. The default options are fine, read the next section for possible options.
6.
Close and save the window.

horizontal rule

bulletUsing Tearoff when your application is running

We hope we've made this just as easy as the previous section.

1. To Add a menu item to the Tearoff simply hold down the Control Key on the keyboard and Left Click the mouse on the required menu item. Note at this point you cannot add 'Std' items - i.e. menu items which make use of 'Std' behavior - for example the Print Setup item. Also you cannot add Menus themselves - only menu items.
2.
To Remove a menu item from the Tearoff simply Right-Click on that item in the Tearoff and select Delete.
3. To Use an item in the Tearoff simply Left-Click on the item in the Tearoff.

horizontal rule

bulletOptions for the Tearoff Template : Frame

bullet smallGeneral Tab

bullet smallTranslate Tab

bulletAdvanced Tab

horizontal rule

bulletOptions for the Tearoff Template : Toolbox

bulletGeneral Tab

bulletTranslate Tab

bulletAdvanced Tab

horizontal rule

bullet Advanced: View Toolbox Menu item

Tearoff includes support for a View ToolBox menu item. This is typically a Check Menu Item added to your View menu which allows the user to turn the Toolbox on and off. To add this feature to your application you must;

1.
Open the Frame Procedure.
2.
Go to the Window Editor - to the Menu Editor. Add a new menu item. (Typically in the View menu, View Toolbox). Click on Toggle (on/off) Item. Set the Use Variable to be Tear:View
3.
Go to the Extensions for the Frame, to the Activate CapeSoft Tearoff extension, set the 'View' menu item option to be ?Tear:View
4.
Close and save the window.

horizontal rule

bulletExamples

There is an example in your \Clarion5\3rdParty\Examples\Tearoff\Abc directory and in the \Clarion5\3rdParty\Examples\Tearoff\Legacy directory.

horizontal rule

bulletTips & FAQ

bulletClarion Versions : Tearoff is available for Clarion 5, 5.5 and 6.  There is no upgrade charge. However you will need the correct version to match the version of Clarion that you are using. Download the correct version from www.capesoft.com .

bulletCompile Error : Unknown Identifier ?Panel1 : You'll get this in Clarion 4 when upgrading from an earlier version of Tearoff. Simply re-import the window from the TXA again. See Adding Tearoff to your application. 

bullet Ezhelp: If you have Ezhelp loaded in the same application, then you'll want to disable Ezhelp on the Tearoff window. To do this simply go to the Ezhelp extension on the window, and click on the option "disable Ezhelp in this procedure".

bullet Tearoff Toolbox "look" : Remember the Tearoff toolbox procedure is a normal Clarion window, with normal Clarion buttons. So you can set the font, and button style to match the rest of your app.  Makeover 2.0 and later also supports a "Toolbox" style.

bullet INI file location : By default the Tearoff settings are stored in an INI file in the Windows directory. This allows users on different machines to have different Tearoff menus. However you can force the INI file into the 'current' directory by prepending its name with .\    This allows you to allow 1 user to access the program from various workstations, yet keep his own Tearoff settings.  (See next tip). Alternatively it allows users to share a common Tearoff menu. Normally you would want your TearOff toolbox settings and your TearOff menu settings stored in the same ini file. You need to make sure that the same ini file is used in both the TearOff extension template on the frame as well as in the TearOff controls toolbox window. You can use a variable to contain the ini filename - check the INI Filename is a variable checkbox on both of the TearOff Control templates that appear on the TearOffToolBox and your Frame.

bulletMulti-User : Some users have expressed a desire to share the settings, for multiple users, in the same ini file but with each user still having their own Tearoff settings. This is now supported. Simply make sure you have a variable, in the frame, that contains the current user's login ID. For example, using Secwin, this ID would be got using the ds_CurrentLogin function.

bulletLong Menu Text : In some programs the menu items are generally very long. In this case it's not a bad idea to set the Text Only Button Height option on the Tearoff window extension options to a value which allows 2 lines of text (set it to say 20). Although this makes the toolbar higher, and hence uses up some more screen space, it allows for narrower, and hence more, buttons on the bar.

bulletDisabling TearOff at runtime: The easiest way to disable Tearoff at runtime, is to place a return in the ThisWindow.Init method of the TearOffToolbox window. For example:

If GLO:DisableTearOff = 1 then
  return level:notify
end

horizontal rule

bullet Version History

Click here to go to the Version History document.




[End of document]