| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |
Arguments: grid-widget &key (confirm t)
Conditionally deletes the grid-row
s and grid-column
s of
grid-widget (which must be an instance of grid-widget
) that are
both deletable
and selected. If
confirm is true (the default), then confirm-grid-subsection-deletion is
called, and the deletion is done only if that overridable generic
function returns true. If confirm is nil
, then the deletion is always done. The return
value is the list of subsections that were deleted; this is nil
if no subsections were selected or if the user
canceled the confirmation dialog.
There is a delete-selection
method for grid-widget
s
that calls delete-selected-subsections, so an application
could call either. In the IDE, the Edit | Delete ommand calls
delete-selection, so its
keyboard shortcut (the Delete key) will call this function
automatically. A standalone application would need to call this
function in its own way instead.
Alternately, delete-row and/or delete-column can be called to delete individual rows and columns regardless of their state, and (setf subsections) can be called to replace the whole set of rows or columns. delete-selected-subsections calls delete-row or delete-column to delete each subsection, so an application's wrapper methods on those generic functions would catch deletions that are done in either way.
Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |