Foldernames are truncated with Auto function

Post Reply
Bert
Posts: 147
Joined: Sun Feb 22, 2004 10:50 pm
Location: The Netherlands

Foldernames are truncated with Auto function

Post by Bert »

Since headers sometimes get very long by users who want to include full urls in the headers.
In that case when I use Auto download and save the foldername gets truncated at about 80 characters.
I can imagine there will be a limit, but please use the Windows limit. Also there is no warning at all so you end up having many files in the same truncated directory.

Another issue, with Win7, is that when you choose download and save attachments > suggest new folder.
When you press suggest a foldername is suggested. After that you have to press Enter twice. But, if you press the second Enter too fast the files arent stored in the suggested folder but in the root. This wasnt the case with windows XP. Looks like the folder isnt created before pressing the second enter. Some timing issue.
Maccara
Posts: 35
Joined: Thu Nov 06, 2008 12:18 pm
Location: Finland

Re: Foldernames are truncated with Auto function

Post by Maccara »

Bert wrote:Another issue, with Win7, is that when you choose download and save attachments > suggest new folder.
When you press suggest a foldername is suggested. After that you have to press Enter twice. But, if you press the second Enter too fast the files arent stored in the suggested folder but in the root. This wasnt the case with windows XP. Looks like the folder isnt created before pressing the second enter. Some timing issue.
Haha! This was exactly what I just found out. I was like "WTF happened" and have been looking at my folders security settings etc for a couple of hours and just came here as I couldn't figure it out, but you just nailed it! "I'm too fast for Win7" :)

I now investigated a little further and I'm pretty sure I know what's happening.

Has not happened for me with UE on XP (otherwise same setup, just upgraded this machine to win7 last week).

This seems to be an issue with how the folder is selected after creation and dialog box is redrawn. UE seems to redraw the whole dialog box, and in Win7 default setting this is an "animated" process (you can see it actually fade out and back), but the key input is not disabled, so if you're fast enough with the enter, the text box still contains the root folder info and that gets processed.

WinXP didn't have this amount of animation as default, so it was not an issue. You could disable the animation on Win7 and I suspect the issue would go away too. I don't know if anything can be done in UE to prevent this (my GUI-fu sucks) so for the moment I just have to learn out from the "douple tap enter" I've so used to. :D (I don't want to disable the animations in Win7, as it actually normally helps me focus on the just opened windows / popup dialogs and I like it)

It is also possible something works a little differently in Win7 MFC (or whatever API UE is using) than XP, can't rule out a bug even.
alex
Posts: 4548
Joined: Thu Feb 27, 2003 5:57 pm

Re: Foldernames are truncated with Auto function

Post by alex »

I'll try to check this out, didn't look at that yet, I'm using winxp for work since it compiles two times faster (even without any animations involved), interesting how much impact on world electricity consumption introducing win7 had.
Maccara
Posts: 35
Joined: Thu Nov 06, 2008 12:18 pm
Location: Finland

Re: Foldernames are truncated with Auto function

Post by Maccara »

alex wrote:I'm using winxp for work since it compiles two times faster (even without any animations involved), interesting how much impact on world electricity consumption introducing win7 had.
Interestingly, my compile times are about the same. (and overall Win7 is much snappier than the XP setup on this machine, but that's probably mostly due to this not having so much crap installed yet ;))
Maccara
Posts: 35
Joined: Thu Nov 06, 2008 12:18 pm
Location: Finland

Re: Foldernames are truncated with Auto function

Post by Maccara »

Slight correction to my "findings": Actually, does not seem to redraw the whole dialog, but it seems there's a relatively long delay before the created folder is copied into the input box (no idea why, as it is seen in the folder list immediately).
alex
Posts: 4548
Joined: Thu Feb 27, 2003 5:57 pm

Re: Foldernames are truncated with Auto function

Post by alex »

I checked it, in WinXP the dialog works synchronously, in Windows 7 it is asynchronous, so the code won't work exacty in the same way if not to make the distinction.

In Windows 7 SendMessage returns immediately, but the message is dispatched later, I'll just add a variable which will work as an indicator whether it was synchronous action or not so not to start adding code checking the system version.

There is indeed some animation delay, I want to have full path displayed in the edit box, but in Windows 7 I see for a split of a second the stripped folder name and the sighting duration seems to correspond to the delay of SendMessage.
Post Reply