Delphi 5 sometimes rearranges its toolbars seemingly at random (and rather stupidly) every time it starts or loads a project. Once it starts doing this, it is pointless to rearrange them and store the desktop, Delphi will just make a mess out of it again.

I have not been able to find out, what causes this, but apparently the toolbar settings in the registry get corrupted. Deleting them, will restore the default toolbars again. You can then customize them and Delphi will remember your settings. (Until next time the registry entries get corrupted. :-( ).

(If you never experienced this problem, count yourself lucky, it is quite annoying.)

The entries are under HKEY_CURRENT_USER\Software\Delphi\5.0\Toolbars, just delete all entries.