Fix for issue #46: make sure the border of panes in tabs are procesed as such in all cases and not only when in wxAuiNotebook