SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2013 v18 beta => Topic started by: asandler on April 29, 2013, 10:26:41 AM

Title: Alternative to next-buff-tab (and prev-buff-tab)
Post by: asandler 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.
Title: Re: Alternative to next-buff-tab (and prev-buff-tab)
Post by: Clark 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();
}
Title: Re: Alternative to next-buff-tab (and prev-buff-tab)
Post by: asandler on April 29, 2013, 04:35:58 PM
Cool. Thanks.
Title: Re: Alternative to next-buff-tab (and prev-buff-tab)
Post by: Ryan 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