ocbanner picture

oneclick_tiny picture

Guide to
OneClick

What is OneClick?
A good introduction to OneClick.

What Are Floating Palettes?
If you aren't sure what floating palettes are or why they're cool, read this section.

OneClick's Standard Palettes
OneClick ships with several palettes that will quickly become indispensable.

How Does it Work?
OneClick isn't magic -- though it may seem like it.

What Can I Do With OneClick?
Here are a few of the things I do with OneClick. The limits are your imagination.

Working With OneClick
OneClick makes modifying buttons and palettes easy!

Don't Be Shy!
Thinking 'programming' sounds scary? Don't be. Scripting OneClick is easy!

Is It Perfect?
No program is perfect. Here are a few of the glitches, bugs, and problems with OneClick. None are insurmountable, but you should be aware of them.

occontrolpanel picture
Working With OneClick
The OneClick Control Panel gives you a simple choice: you can have the OneClick menu show up on the Apple Menu or on the Menu Bar. I prefer it on the Menu Bar, but it's your choice. If you put OneClick on the Menu Bar, it displays as a small triangle graphic like this: menubar picture.

Pulling down the OneClick menu gives you a list of installed palettes. Open palettes have a bullet by them; hidden ones do not. Palettes at the bottom of the menu, below the divider line, are application-specific -- that is, they belong to the currently active application. If you switch to a different program, those palettes won't be available. The upper palettes are global -- they're available in all applications.

ocmenu picture

Selecting a palette from the OneClick menu opens or closes it. Even when a palette is closed its shortcut keys still work, so you don't necessarily need palettes open to use them.

The most important OneClick command, however, is right at the top of the menu: OneClick Editor. Choosing that brings up the OneClick Editor, the main interface for creating, deleting, and editing palettes and buttons. The OneClick Editor is a multi-paned window -- below I explain the functions of each of the panes.

You can move the OneClick Editor window wherever you'd like. You can change the size of the window as needed, and OneClick will remember the size and location the next time you open it. OneClick works well with multiple-monitor setups. When you are finished editing a palette or button, click the close box in the upper left corner of the OneClick Editor to close it.


ocabout picture

About OneClick
If you click outside the panel tabs within the Editor, you get to see the above wonderful OneClick about box. Enjoy.


oclibrary picture

The Library
This area allows you to store buttons for reuse. OneClick ships with buttons for lots of applications, and you can add more. To use one of these buttons, you just drag it to a floating palette. The entire button -- icon, script, etc. is copied to the palette. It is not removed from the Library. Buttons in the Library are grouped by application, but you can create your own Libraries for buttons of any category.


ocpaletteedit picture

The Palette Editor
This is where you create, delete, and edit entire palettes. You can change a palette from being application-specific to working globally, or vice versa. You set whether or not a palette has a title bar. You define the size of a palette (in pixels) and its position on the screen. You can change the color of the background, and even import in a PICT format picture to be your background. By creating an attractive background in a program like Photoshop and placing invisible OneClick buttons on top of it, you can create the effect of having buttons far more elaborate than can be drawn with the OneClick Icon Editor.

An extremely important part of the Palette Editor is the "New Palette" popup menu at the lower right: it allows you to create new palettes, importing palettes from other sources (such as ones you download from the Button Circle website), and export your own palettes to disk (so you could give them to others). You should become familiar with these commands because they are powerful and important.


ocbuttonedit picture

The Button Editor
Here is where you modify the visual aspects of a button. When you select a button (or several buttons) on a OneClick palette, it is highlighted with corner handles to show that you've selected it:

ocbuttonselected picture

Within the Button Editor you can add a text label, set the name of the button, change the size of the button and its position on the palette, edit the button's help text, and set the shape, style, and state (active, pushed, etc.) of the button. These changes take effect instantly so you watch what happens when you change things. Invisible buttons are visible while in the Editor, but as soon as you close the Editor, the button vanishes. Every single of these visual aspects of buttons can also be controlled via scripting -- making OneClick incredibly powerful.


ocscriptedit picture

The Script Editor
If your button has a script -- and other than asthetic purposes there'd be no reason a button wouldn't have a script -- this is where you'd edit it. It works like a standard text editor, except that when you press Return the script is instantly formatted according to EasyScript standards. Loops are indented, variable names capitalized consistently, etc. You save the changes to the script by pressing Command-S or switching to another pane or button. OneClick will beep and warn you if there are any syntax errors -- you cannot leave the Script Editor until you fix them.

ocscripthelplist picture

My favorite feature of the Script Editor are the Script Help buttons. Clicking the leftmost help button brings up a list of all of the commands OneClick understands. There's a brief one-line description. For more detail, click on one of the commands in the list. The other help button (the one with the question mark icon) is really cool. If you highlight a command in your script and click on the help button, it takes you right to a description of that command. For instance, in the above script I highlighted the function "getDragAndDrop" and clicked the question mark. Here's what came up (the window can be resized and scrolled).

ocscripthelpitem picture

Within this help text (which is impressively comprehensive, though not perfect), you can select text and copy it. This is great as the text often includes sample scripts which you can paste back into your own script and simply change slightly. This is basically how I learned OneClick programming -- I explored the commands in this online help file and immediately tried them out in test scripts. I've used many other scripting languages, but none compare to OneClick in its unique blend of simplicity, power, elegance, and online help.


ociconedit picture

The Icon Editor
Every OneClick button is permitted to have up to four icons (labeled icons 1 through 4). In the editor you set which one you are editing with the popup menu in the lower left corner. Having different icons is great -- via a script you can tell the current button to switch from icon 1 to icon 2, for instance, making a two-state checkbox: checked and unchecked.

Within the Icon Editor pane, you can draw anything you like. The maximum size for an icon is 32 by 32 pixels. You have a nearly full toolbox of editing tools: pencil, rectangle, circle, paintbrush, and eraser. You can use any color from the Mac's 256-color system palette. The only things you can't do that I miss, are flip and rotate.


ociconsearch picture

Searching for Icons
OneClick has the ability to scan your hard disk for icons stored in applications or the operating system. It allows you to grab those icons and use them for your own buttons. This can be useful to give you a starting place for drawing your own icons, or to help identify your palette to a particular application.

Previous | Next

azwebsite picture Updated on Sat, Oct 2, 1999 at 9:57:38 AM.
Contents Copyright ©1999 by . OneClick is made by WestCode Software and is not affliated with Marc or DesignWrite.