}
int wxNotebook::ChangeSelection(size_t nPage)
{
wxCHECK_MSG( IS_VALID_PAGE(nPage), wxNOT_FOUND, wxT("notebook page out of range") );
}
int wxNotebook::ChangeSelection(size_t nPage)
{
wxCHECK_MSG( IS_VALID_PAGE(nPage), wxNOT_FOUND, wxT("notebook page out of range") );
{
// No selection change, just refresh the current selection.
// Because it could be that the slection index changed
{
// No selection change, just refresh the current selection.
// Because it could be that the slection index changed
{
// no, it doesn't come from child, case (b) or (c): forward to a
// page but only if direction is backwards (TAB) or from ourselves,
{
// no, it doesn't come from child, case (b) or (c): forward to a
// page but only if direction is backwards (TAB) or from ourselves,
(!event.GetDirection() || isFromSelf) )
{
// so that the page knows that the event comes from it's parent
(!event.GetDirection() || isFromSelf) )
{
// so that the page knows that the event comes from it's parent