enterPoints
enterPoints( [?promptsl_promptList] [?pointsl_pointList] [?forms_form] [?addPointProct_addProcName] [?delPointProct_delProcName] [?initProct_initProcName] [?doneProct_doneProcName] [?formProct_formProcName] [?wantPointsx_pointLimit] [?alwaysMapg_alwaysMap] [?acceptStringg_acceptString] [?acceptNumberg_acceptNumber] [?noInfixg_noInfix] [?cmdNamet_cmdName] [?cursorx_cursor] ) =>l_coord_pair
Description
Prompts you to enter a list of points.
Arguments
|
List of prompt strings to be displayed for successive points. |
|
|
List of points to be preloaded into the enterfunction. If this list is terminated by two identical points, the function returns the adjusted points with no further interaction. If not, any points in this list are added. The points are not displayed, and there is no rubber band line connecting any of the points. The function is terminated in the same manner as other multi-point enterfunctions. |
|
|
Options form created with |
|
|
Name of the SKILL function to be called when a point is entered. |
|
|
Name of the SKILL function to be called when a point is deleted. |
|
|
Name of the SKILL function to be called immediately after the enterfunction is started and before any data entry. |
|
|
Name of the SKILL function to be called when the enterfunction is terminated. |
|
|
Name of the SKILL function to be called when the options form is displayed. |
|
|
Maximum number of points to be accepted by this function. Collects points until the number of points specified by x_pointLimit is reached or until you finish or cancel the enterfunction. Nothing is drawn by the enterfunction. |
|
|
Determines whether or not to immediately display the options form. |
|
|
Determines whether or not to accept string input without terminating the enterfunction. |
|
|
Determines whether or not to accept numeric input without terminating the enterfunction. |
|
|
Name you associate with the enterfunction. If the command name is set, it can be accessed with |
|
|
An integer argument that will default to an appropriate cursor. For example, |
|
Value Returned
Retrieve data through the callback procedure t_doneProcName instead of using the return value for this enterfunction.
Examples
Displays the prompt Enter a point is displayed on the prompt line.
procedure( pointsDone( w done pts )
if( done then
printf("Points entered were %L.\n" pts)
else
println("Point entry aborted.")
)
)
enterPoints( ?prompts
list( "Enter the first point."
"Enter the next point." )
?doneProc "pointsDone"
)
When you enter point p1 the prompt changes to Enter the next point Unlike enterLine, no rubber band line appears between p1 and the current cursor location.
Enter point p2. The prompt reads the same— Enter the next point— because the second prompt in the list is used for any points after the first. Continue with p3.
finishEnterFun( )
doneProc prints the points entered:
Points entered were ( p1 p2 p3 ).
The enterfunction returns the point list:
( p1 p2 p3 )
Related Topics
Return to top