Problem with Previous Window/Tab Command

Help with writing and playing macros

Problem with Previous Window/Tab Command

Postby XTender » Mon Jun 19, 2006 8:01 am

Hi,

got a little problem with one Macro.
When i create a new file in the macro and close the new file.
How can i go back to the tab/document a had opened first?
When 1 have 5 Files open and my start file is on the first place and i use the "select previous tab" after closing then it works.
But when the start file is on the last place then it doesnt work.

help?! :)
User avatar
XTender
Basic User
Basic User
 
Posts: 10
Joined: Fri Feb 18, 2005 12:00 am
Location: Germany - Braunschweig

Re: Problem with Previous Window/Tab Command

Postby Mofi » Mon Jun 19, 2006 9:05 am

I really don't know why IDM has changed which file gets the focus after closing a file. Since v12.10+3 the file next to the closed file in the open file tab order (document order) gets the focus and not the previously used file (window order) as it was in prior versions.

This new behaviour has a dramatic effect on all macros which closes a file and expects that the previously used file gets the focus. All these macros will not work anymore as expected.

Please write an email to IDM support and ask why IDM has changed it and why there is no option to switch back to the previous handling which is needed for existing macros.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Problem with Previous Window/Tab Command

Postby XTender » Mon Jun 19, 2006 9:21 am

Yes i had the same in mind because that macro worked bevor the Update.
I also tryed to find an option that change the selection document after closing but didnt found it.
I mail them ..
User avatar
XTender
Basic User
Basic User
 
Posts: 10
Joined: Fri Feb 18, 2005 12:00 am
Location: Germany - Braunschweig

Re: Problem with Previous Window/Tab Command

Postby Mofi » Thu Sep 07, 2006 8:49 am

In UEStudio 6.00 there is a configuration option now for the focus handling after a file is closed. The option can be found at Configuration - Application Layout - File Tabs - Move to nearest left tab after current tab is closed.

scallanh wrote:The Move to nearest left tab after current tab is closed configuration option is not available in UltraEdit v12.10b, but it is mentioned in the help file for that configuration pane and it does not say that it is only available in UEStudio. Not showing the last selected file tab when closing a file is one of my top five problems with UltraEdit at the moment and I hope this configuration option is added to UltraEdit.

There's also a similar situation with the Tab Colors by File types configuration option: it's only in UEStudio apparently, though the help file doesn't say so.


Yes, although v12.10b was released after UEStudio 6.00 it is only a minor bugfix version (with new bugs) of v12.10a and does not contain any new feature already available in UEStudio 6.00. Because the help file for UltraEdit is the same as for UEStudio you can already find the new features described in help although they are not available in v12.10b of UltraEdit.

I don't know which version number the next major release of UltraEdit will have where the option will be available and when it will be released. I guess, it will be v12.20.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Need help with File Tabs

Postby mrainey56 » Fri Sep 08, 2006 11:56 am

Maybe you could create a short, unique character string in the original file just before you create the new file. After you close the new file, set up a loop to search for the unique string - keep advancing to the next tab (window) until you find it. After you find the string, erase it and exit the loop.

Klutzy as hell, might get you by.
User avatar
mrainey56
Master
Master
 
Posts: 212
Joined: Tue Jul 27, 2004 11:00 pm
Location: Spartanburg, South Carolina

Re: Problem with Previous Window/Tab Command

Postby Mofi » Fri Oct 20, 2006 7:05 am

Good news for all macro users: UltraEdit v12.20 was released and so there is the option Move to nearest left tab after current tab closed at Configuration - Application Layout - File Tabs now also available for UltraEdit like it is for UEStudio since v6.00.

With hotfix 12.20+1 also the load macro problems are solved with macros which use the GotoLine and GotoLineSelect commands.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Macros