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

asandler

  • Senior Community Member
  • Posts: 303
  • Hero Points: 27
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: 6826
  • Hero Points: 526
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: 303
  • Hero Points: 27
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: 986
  • 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