
Back to AutoLisp Tutorial Homepage
D C L
I M A G E
|
|
The AutoLisp Tutorial - DCL Dialog Control Language - Image Image Image An Image is used to display a vector graphic picture inside a rectangle. To create the image you can use three different methods.
Let's look at the DCL Image definition and the AutoLisp functions required to display the image. DCL - You must supply either the width and height or one of these plus an aspect_ratio. : image { AutoLisp ;;;--- First we need a slide name ;;;--- Second we need the key to the image control
;;;--- Next we send the slide name and the key to the
update function ; NOTE: Notice mySlideName
becomes sldName and myKey
becomes key when passed ;;;--- Function to update the slide (defun upDateImage(sldName key) ;;;--- Get the width of the slide ;;;--- Get the height of the slide
;;;--- Start the slide definition ;;;--- Wipe out the background ;;;--- Put the slide in the image area ;;;--- Finish the slide definition ) This function can be used over and over to display any slide image in an image control. Use the upDateImage function after the new_dialog call and before the action_tile statements. You can also use this function while the dialog box is displayed in one of your action calls. We will use this later on in the tutorial so you can see it in action. All questions/complaints/suggestions should be sent to JefferyPSanders.com Last Updated September 28th, 2008 Copyright 2002-2008 JefferyPSanders.com. All rights reserved. |