Merge branch 'select-after-delete'

Harmonize behaviour of wxItemContainer::Delete() for all controls and
ports when using single selection.

See https://github.com/wxWidgets/wxWidgets/pull/1080

Closes #18267.
This commit is contained in:
Vadim Zeitlin
2019-01-04 14:01:02 +01:00
17 changed files with 92 additions and 48 deletions

View File

@@ -908,7 +908,7 @@ public:
"Safe parts" are all non-UI elements (e.g. all layout determining parameters like the
size, position etc.). "Unsafe parts" (pointers to button, frame and window) are not
modified by this write operation.
@remark This method is used when loading perspectives.
*/
void SafeSet(wxAuiPaneInfo source);

View File

@@ -354,6 +354,12 @@ public:
failure in debug builds) to remove an item with the index negative or
greater or equal than the number of items in the control.
If there is a currently selected item below the item being deleted,
i.e. if GetSelection() returns a valid index greater than or equal to
@a n, the selection is invalidated when this function is called.
However if the selected item appears before the item being deleted, the
selection is preserved unchanged.
@param n
The zero-based item index.

View File

@@ -61,9 +61,9 @@
list is selected or the selection changes.
@event{EVT_LISTBOX_DCLICK(id, func)}
Process a @c wxEVT_LISTBOX_DCLICK event, when the listbox
is double-clicked. On some platforms (notably wxGTK2)
pressing the enter key is handled as an equivalent of a
double-click.
is double-clicked. On some platforms (notably wxGTK2)
pressing the enter key is handled as an equivalent of a
double-click.
@endEventTable
@library{wxcore}

View File

@@ -801,7 +801,7 @@ public:
The messages will be written in the encoding specified by the
given @c wxMBConv.
The @a conv argument is only available in wxWidgets 3.1.1 and later.
The @a conv argument is only available in wxWidgets 3.1.1 and later.
@note
In practice, it is only advisable to specify @c wxConvUTF8 as