Author Topic: Alternative to next-buff-tab (and prev-buff-tab)  (Read 1362 times)

asandler

  • Senior Community Member
  • Posts: 279
  • Hero Points: 24
Alternative to next-buff-tab (and prev-buff-tab)
« on: April 29, 2013, 10:26:41 am »
I am trying SE 18 now. Is there an alternative to next-buff-tab and prev-buff-tab in the new UI?
These two commands switching to next or previous buffer tabs (respecting their order).

Thanks,
Alex.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4393
  • Hero Points: 328
Re: Alternative to next-buff-tab (and prev-buff-tab)
« Reply #1 on: April 29, 2013, 03:51:13 pm »
I added just added next_doc_tab and prev_doc commands.

Code: [Select]
_command void next_doc_tab() name_info(','VSARG2_READ_ONLY|VSARG2_ICON|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL|VSARG2_LINEHEX)
{
   int wid=_MDINextDocumentWindow(p_window_id,'N',false);
   wid._set_focus();
}
_command void prev_doc_tab() name_info(','VSARG2_READ_ONLY|VSARG2_ICON|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL|VSARG2_LINEHEX)
{
   int wid=_MDINextDocumentWindow(p_window_id,'P',false);
   wid._set_focus();
}

asandler

  • Senior Community Member
  • Posts: 279
  • Hero Points: 24
Re: Alternative to next-buff-tab (and prev-buff-tab)
« Reply #2 on: April 29, 2013, 04:35:58 pm »
Cool. Thanks.

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 987
  • Hero Points: 77
Re: Alternative to next-buff-tab (and prev-buff-tab)
« Reply #3 on: April 29, 2013, 04:41:50 pm »
Also I added calls to these commands in next-buff-tab (and prev-buff-tab), so that if the old File Tabs tool window is not visible, we call these new commands.  So you shouldn't have to rebind any keys.

- Ryan