|
Allegro CL version 8.0 |
A blank toolbar should appear at the top of the Doodler form, just under the title bar. It appears as a slender sunken rectangle spanning the length of the form.
- Point the mouse cursor somewhere near the upper left corner of the Doodler toolbar and click. The multi-picture-button control will appear inside the toolbar, ready to be resized.
- Click on one of the sizing handles and drag the mouse to the right until the control almost fills the toolbar. Release the mouse key when you are satisfied with the size of the control.
Entering Numeric Values in the Inspector
Since these are numeric values, click once on each value field to select it. Type in the number with the field selected (youll see it darkened, indicating that it has the keyboard focus), and hit ENTER to register the value in the inspector.
If you double click the value, youll see an Edit Expression window appear with the current value of the property in it. Type the new value in that window. Click the OK button to register the new value and close the window.
Select the entire range by double clicking at the very beginning of the expression in the window. Delete the expression. Change the range to the expression shown below.
This will change the look, number, and behavior of the buttons on the multi-picture button, but not the size of the bounding-box. The bounding-box of the control will remain the same size. You can change that later by clicking on the control and dragging the sizing handles in closer to the boundaries of the buttons.
Pasting Code into the Extended Editor: ignore messy-looking code
You can copy and paste directly from the Tutorial into the Extended Editor (using Control-V keyboard equivalent of Paste). Ignore any extra line feeds in the newly pasted text; they will disappear once you commit the code to the Editor window by clicking OK.
Paste this code into the Extended Editor (the code is delibrately mis-indented, in order to show that the Editor will re-indent code automatically; other code in this document will be correctly indented):
(list (make-instance 'button-info :name :erase :image "erase.bmp" :tooltip "Erase" :help-string "Erase and redisplay image.") (make-instance 'button-info :name :curve :image "curve.bmp" :tooltip "Curve" :help-string "Create and modify curves.") (make-instance 'button-info :name :scroll-to-center :image "center.bmp" :tooltip "Scroll to Center" :help-string "Scroll to center of page."))
.bml Files
Once youve saved a form with .bmp files associated with it, a .bml file is created by the IDE. This file holds the Lisp representation of the bitmap. The .bmp file is no longer referred to or needed once youve got a .bml file.
If you change a .bmp files characteristics after creating a .bml file, the change will not be noted until a new .bml file is created.
See Also: doc/cg/cg-pixmaps.htm.
ToolTip Delay
The IDE is deliberately set up with a property called tooltip-delay. This prevents you from seeing annoying flashes of ToolTip messages whenever you drag the cursor across a large expanse of screen.
After youve started focusing on a tool, there is a slight delay until you see the first ToolTip. Once youve focused on one tool and then moved to another, there will be no delay in the ToolTip popping up.
Copyright © 2001-2004 Franz Inc. All rights reserved.
|
Allegro CL version 8.0 |