Windows 7 save dialog problem

Post Reply
bhw
Posts: 9
Joined: Fri Jun 03, 2005 7:33 pm

Windows 7 save dialog problem

Post by bhw »

Windows 7 Save Dialog does not bring the open (current) folder into view.

Vista and below auto-scrolls down the directory tree so that the last save folder is visible on the screen to allow quick navigation to it's parent.
On Windows 7 UE does not do this most of the time. On very odd occasions it works (normally when only one folder exists at the same level), all other times, it is below the bottom of the dialog - which means you have to scroll down the directory tree every time you want to create a folder at the same level.

Aditionally, there is now a delay of between half a second and one second between a new path being created (via manually typing or "Suggest" and then pressing ENTER) and it being focused and selected in the "Folder" field.

As with the other problem, this doesn't exist in Vista or below, only Windows 7.

I am running Windows 7 64-bit, using the "Modified" browse for folder dialog and "Suggest new folder" ticked.
alex
Posts: 4558
Joined: Thu Feb 27, 2003 5:57 pm

Re: Windows 7 save dialog problem

Post by alex »

I'll check it out, I also read your another message, just busy now with the next version.
alex
Posts: 4558
Joined: Thu Feb 27, 2003 5:57 pm

Re: Windows 7 save dialog problem

Post by alex »

It looks like system related issue.

I noticed when you restart the system - the first time it moves the focus to the selected item.

Consequently it doesn't, even if I restart UE.

I could try to locate the window, if it is the tree control to send it a message to ensure the selected item is visible.

The control is not on the surface, it is buried somewhere without an explicit id.

Because it works in the first time it is something system related, if application related it would move the focus after application restart.
bhw
Posts: 9
Joined: Fri Jun 03, 2005 7:33 pm

Re: Windows 7 save dialog problem

Post by bhw »

As I say, it does sometimes correctly navigate, but more often than not it only works if there is only one folder at the same level. I have seen situations where it will navigate with multiple folders at the same level, but it's very rare.

Not sure how you are constructing the save dialog, but in my apps I usually set the Current Folder to be the folder you want it to navigate to prior to opening the dialog, Windows then handles the navigation for you.
This will only work if your modified dialog uses the standard browse control though.

It's only the initial folder that doesn't get scrolled into view. Folders created in the dialog do get scrolled into view correctly.

It's certainly an odd problem. Never seen it myself in apps I have developed and migrated to Windows 7, but I have not attempted to create modfied dialogs.

Any chance you could make the folder browse window support hot tracking (i.e. hover over the folder browser to give it focus), it wouldn't be such a pain then because we can simply hover over the browser and mouse wheel back down, or indeed provide breadcrumbs to the folders selected.

Get the release you are working on out before thinking about it! :)
alex
Posts: 4558
Joined: Thu Feb 27, 2003 5:57 pm

Re: Windows 7 save dialog problem

Post by alex »

It looks like Windows bug.

Probably it adds some items after initialization which cause the control to scroll and it doesn't call EnsureVisible afterwards as it should.

I managed to fix it by finding the tree control and sending messages to it, unlikely Microsoft will have a fix, the browse for folder new folder button bug in WinXP survived until now, not sure if it is fixed in Vista.
bhw
Posts: 9
Joined: Fri Jun 03, 2005 7:33 pm

Re: Windows 7 save dialog problem

Post by bhw »

Well done Alex. You'da'man as usual! :)

Are you using one of the Microsoft Visual Studio compilers by any chance?

Everything I have tested that is written in Visual Studio suffers from the problem, Delphi 2010 doesn't suffer from the problem.

Not tested VS2010 so can't be sure of that.
Post Reply