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.

Comments

  1. Does that mean desktop names must follow file naming rules? I assume the slash is the problem.

    ReplyDelete
  2. 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.

    ReplyDelete
  3. David Schwartz ah, the name is just a filename. That makes sense! It means that invalid path characters are forbidden.

    ReplyDelete
  4. One might hope for a more thoughtful solution, so that saving does not trump naming.

    ReplyDelete
  5. 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".

    ReplyDelete
  6. Open 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.

    ReplyDelete
  7. 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.

    This is not documented at docwiki.embarcadero.com - Saving Desktop Layouts - RAD Studio

    ReplyDelete
  8. David Schwartz just open both types and compare. They are very similar.

    ReplyDelete

Post a Comment