home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / WIN_CE / PC / coolcalczip.exe / customiz.htp < prev    next >
Encoding:
Text File  |  1997-09-11  |  11.0 KB  |  254 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <html>
  3.  
  4. <head>
  5. <meta http-equiv="refer" content="file:coolcalc.htc">
  6.  
  7.  
  8.  
  9. <title>Customizing CoolCalc</title>
  10. </head>
  11.  
  12. <body bgcolor="#FFFFFF">
  13.  
  14. <h2>Customizing CoolCalc</h2>
  15.  
  16. <p>This section answers the following questions:</p>
  17.  
  18. <dl>
  19.     <dt>I want to customize CoolCalc. Where do I start?<br>
  20.         How do I create a macro?<br>
  21.         What is a layout anyway? <br>
  22.         How do I manipulate layouts? (Run Mode vs. Program Mode)<br>
  23.         How do I reposition and resize buttons in a layout?<br>
  24.         How do I assign a different function to a button, or
  25.         change the appearance of a button?<br>
  26.         How do I add a new button?<br>
  27.         How do I delete a button?<br>
  28.         What's the difference between Macros and Layouts? How are
  29.         they alike?<br>
  30.         How do I edit a Macro or a Layout?<br>
  31.         How do I change the fonts in a layout?</dt>
  32. </dl>
  33.  
  34. <h3>I want to customize CoolCalc. Where do I start?</h3>
  35.  
  36. <blockquote>
  37.     <p>CoolCalc is more that just a bunch of nicely linked
  38.     together screens that do basic calculations, it is also a
  39.     programming environment for you to create your own
  40.     calculations and screens. You can create macros (memorized
  41.     sequences of buttons), and make them run with a single button
  42.     press. You can add new buttons, delete buttons, and move and
  43.     resize buttons. And best of all, you can do all of this right
  44.     from your HPC, without having to be linked to a PC or write
  45.     software in a computer language such as Basic or C.</p>
  46. </blockquote>
  47.  
  48. <h3>How do I create a macro?</h3>
  49.  
  50. <blockquote>
  51.     <p>Let's say you're travelling to England from the U.S., and
  52.     you have to convert English pounds to American dollars. You
  53.     wish to set up a special key on your Business Calculator to
  54.     make this calculation for you. The exchange rate is currently
  55.     1.625 pounds for every dollar. </p>
  56.     <p><strong>Here's how to create this sample macro:</strong></p>
  57.     <ol>
  58.         <li>Go to the Business Calculator from the main menu.</li>
  59.         <li>Enter a starting value for pounds, say 5. This is
  60.             used as a sample value for creating the macro.</li>
  61.         <li>From the menu bar at the top of the screen, select
  62.             Macro, then Record Macro.</li>
  63.         <li>Enter a name for the macro; let's call it pounds.</li>
  64.         <li>Now, we start the calculation. Tap the division key,
  65.             then tap 1.625, then =. The value you see is 3.08, or
  66.             5 pounds in dollars.</li>
  67.         <li>From the menu, select Macro, then End Record Macro.</li>
  68.         <li>Next, you will be asked "Want to assign next
  69.             button pressed to recorded macro?" Tap Yes.</li>
  70.         <li>Tap any blank button. The macro we just recorded is
  71.             now attached to that button. To test it, enter 10,
  72.             then tap the pounds button. You should see 6.15 in
  73.             the display.</li>
  74.         <li>Tap the home button. You will see a message
  75.             "Current Layout has changed. Do you wish to save
  76.             it before continuing?" If you want to
  77.             permanently have the pounds macro attached to the
  78.             button you selected, answer yes. However, since very
  79.             few of you will be travelling to England in the near
  80.             future, and the exchange rate is bound to change, you
  81.             should answer no.</li>
  82.     </ol>
  83. </blockquote>
  84.  
  85. <h3>What is a layout anyway? </h3>
  86.  
  87. <p>A layout refers to the appearance of individual screens, i.e.
  88. the size and position of various buttons, and what functions are
  89. assigned to them. CoolCalc has built-in tools to allow you to
  90. easily change the assignment of various buttons, and move those
  91. buttons around.</p>
  92.  
  93. <h3>How do I manipulate layouts? (Run Mode vs. Program Mode)</h3>
  94.  
  95. <blockquote>
  96.     <p>On the top menu bar, select View, then select Program
  97.     Mode. Now, tap any button on the screen. You'll notice that
  98.     the button gets a large border around it, but nothing else
  99.     happens. This large border around the button on the left side
  100.     means that the button is selected. Experiment: tap other
  101.     buttons to select them. You'll notice that only one button at
  102.     a time can be selected. In this mode, you can reassign and
  103.     reposition all buttons, as well as add or delete buttons.</p>
  104. </blockquote>
  105.  
  106. <h3>How do I reposition and resize buttons in a layout?</h3>
  107.  
  108. <blockquote>
  109.     <p>Once you enter Program Mode from the View menu selection,
  110.     you can reposition buttons as follows:</p>
  111.     <ul>
  112.         <li><strong>To select a button:</strong> Tap the button
  113.             which you wish to move or resize. A large border will
  114.             appear around the button, indicating that it is
  115.             selected.</li>
  116.         <li><strong>To move a button: </strong>Place the stylus
  117.             in the center of the selected button, and drag the
  118.             button around the screen. You can also use the arrow
  119.             keys to move the selected button.</li>
  120.         <li><strong>To resize a button:</strong> Place the stylus
  121.             on the edge of a button, and drag the edge around.
  122.             You can also hold down the shift key, and use the
  123.             arrow keys to resize the button.</li>
  124.         <li><strong>To align other buttons with the selected
  125.             button:</strong> Say you want to align other buttons
  126.             with the top of a "master" button. Select
  127.             the "master" button, then select Align from
  128.             the menu, then select Top. From now on, any button
  129.             you press will be aligned with the top of the
  130.             "master" button. IMPORTANT: When you're
  131.             done aligning, select Align from the top menu, then
  132.             select Off.</li>
  133.         <li><strong>To undo any button movement:</strong>
  134.             Occasionally you will move or align a button you
  135.             didn't want to. If this happens, select Edit, then
  136.             Undo Move from the menu. You can undo the last 100
  137.             button moves.</li>
  138.     </ul>
  139. </blockquote>
  140.  
  141. <h3>How do I assign a different function to a button, or change
  142. the appearance of a button?</h3>
  143.  
  144. <blockquote>
  145.     <p>In Program Mode, hold down the Alt key and tap a button.
  146.     You will be presented with the button properties dialog.</p>
  147. </blockquote>
  148.  
  149. <blockquote>
  150.     <p>Here's what the various dialog fields do:</p>
  151. </blockquote>
  152.  
  153. <blockquote>
  154.     <ul>
  155.         <li><strong>Function:</strong> This allows you to attach
  156.             a function to the button. The functions are described
  157.             in the Function Reference section. Calculator
  158.             specific functions such as "plus" or
  159.             "minus" always start with a letter from
  160.             "a" to "z". Other functions, such
  161.             as "_PlayMacro", start with the
  162.             "_" character. This was done to separate
  163.             layout functions from calculator functions.</li>
  164.         <li><strong>Parameter:</strong> Some functions require a
  165.             parameter. For example, the _PlayMacro function needs
  166.             the name of the macro to play.</li>
  167.         <li><strong>Alt. Keycap: </strong>This field lets you
  168.             dictate how you want the button to appear. If you
  169.             leave this field blank, then a default value will be
  170.             used. If the Format field is "Text", then
  171.             the text string you specify here will appear on the
  172.             button. If you set the Format to "Bitmap",
  173.             then the bitmap file (*.2bp) image will appear on the
  174.             button. </li>
  175.         <li><strong>Font: </strong>You can select a small, medium
  176.             or large font to draw the text on the button. The
  177.             small, medium and large fonts can be changed by the
  178.             Edit command from the top menu bar while in Program
  179.             Mode.</li>
  180.         <li><strong>Align: </strong>You can have the button text
  181.             or bitmap image aligned left, center, or right.</li>
  182.         <li><strong>Format:</strong> This is the format for the
  183.             button, it can be Money, Text, Real Number, Integer,
  184.             or Bitmap. Most of the time, you will want to have
  185.             this set as Text or Bitmap. Money, Real Number and
  186.             Integer are used with the _Variable or _Display
  187.             functions.</li>
  188.         <li><strong>X, Y, Width, Height: </strong>These specify
  189.             the position and size of the button. You can also
  190.             change the position and size by dragging the button,
  191.             or the edge of a button.</li>
  192.     </ul>
  193. </blockquote>
  194.  
  195. <p> </p>
  196.  
  197. <h3>How do I add a new button?</h3>
  198.  
  199. <blockquote>
  200.     <p>In Program Mode, select Edit, then New Button from the top
  201.     menu. Then, tap where you wish the new button to be placed.</p>
  202. </blockquote>
  203.  
  204. <h3>How do I delete a button?</h3>
  205.  
  206. <blockquote>
  207.     <p>In Program Mode, select the button you wish to delete.
  208.     Next, select Edit, Delete Button from the top menu. If the
  209.     button is not blank, you will be asked to confirm deletion of
  210.     the button.</p>
  211. </blockquote>
  212.  
  213. <h3>What's the difference between Macros and Layouts? How are
  214. they alike?</h3>
  215.  
  216. <blockquote>
  217.     <p>Despite being used somewhat differently, macros and
  218.     layouts share some common similarities. Both are sequences of
  219.     commands, both are stored in files that end in .mac, and both
  220.     can be edited using the macro editor. When you press one of
  221.     the buttons in the main menu (for example, the Business
  222.     Calculator), you are really running a macro that erases all
  223.     of the current buttons, draws new buttons, and sets various
  224.     things such as the small, medium and large fonts, the real
  225.     number precision, and other things. When you select File,
  226.     Save from the top menu, this command writes a series of
  227.     commands to a macro file that will recreate the screen as it
  228.     currently looks. Likewise, when you select File, Open from
  229.     the top menu bar, a macro is run which erases all the buttons
  230.     on the current screen, and redraws the screen.</p>
  231. </blockquote>
  232.  
  233. <h3>How do I edit a Macro or a Layout?</h3>
  234.  
  235. <blockquote>
  236.     <p>In Program Mode, select Macro, Edit Macro from the top
  237.     menu. From there, you can open a <strong>.mac</strong> file
  238.     with the name of the macro or layout file. The macro editor
  239.     is a simple text editor; you need to make sure everything is
  240.     spelled correctly, and there are no extra space characters.
  241.     (If you run a macro with a misspelled function name, you will
  242.     get a warning.) The <a href="function.htp">Function Reference</a>
  243.     section has details on all of the available functions.</p>
  244. </blockquote>
  245.  
  246. <h3>How do I change the fonts in a layout?</h3>
  247.  
  248. <blockquote>
  249.     <p>From the top menu in Program Mode, select Edit, then Small
  250.     Font, Medium Font, or Large Font. You can change the
  251.     typeface, size, and specify bold or italic for the font.</p>
  252. </blockquote>
  253. </body>
  254. </htm