Bummer, cannot save a Delphi desktop named "Default Layout - right 3/4" - at load this one seems to be restored, but the list does not contain that entry.
Yes, they're saved as .dst in the delphi/bin folder. I was looking just yesterday, as I have one that's showing up in my list that I cannot find anywhere on the drive. The code removes lots of garbage, but apparently not slashes.
There must be some more magic involved here. My German system has a "Default Layout.dst" which shows up in the IDE as "Standard-Layout". Same for "Classic Undocked.dst" listed as "Klassisch nicht angedockt".
David Schwartz There is no name in .DST Files. They basically are the tail (starting with [Main Window]) of a .DSK file omitting the final [ActriveProject] part.
The name limitations are because of path name character limitations.
Does that mean desktop names must follow file naming rules? I assume the slash is the problem.
ReplyDeleteYes, they're saved as .dst in the delphi/bin folder. I was looking just yesterday, as I have one that's showing up in my list that I cannot find anywhere on the drive. The code removes lots of garbage, but apparently not slashes.
ReplyDeleteDavid Schwartz ah, the name is just a filename. That makes sense! It means that invalid path characters are forbidden.
ReplyDeleteOne might hope for a more thoughtful solution, so that saving does not trump naming.
ReplyDeleteThere must be some more magic involved here. My German system has a "Default Layout.dst" which shows up in the IDE as "Standard-Layout". Same for "Classic Undocked.dst" listed as "Klassisch nicht angedockt".
ReplyDeleteOpen the files in a text editor. They're basically INI files. Maybe there's a name field buried in there that's what appears in the drop-down.
ReplyDeleteDavid Schwartz There is no name in .DST Files. They basically are the tail (starting with [Main Window]) of a .DSK file omitting the final [ActriveProject] part.
ReplyDeleteThe name limitations are because of path name character limitations.
This is not documented at docwiki.embarcadero.com - Saving Desktop Layouts - RAD Studio
A .DSK file, or .DST file?
ReplyDeleteDavid Schwartz just open both types and compare. They are very similar.
ReplyDelete