How to change Delphi XE2 default behaviour for some panes? - delphi

After switching from Delphi2007 to XE2, I'm terribly unhappy with the behaviour of some Windows/Panes.
I'm designing in the 'Default layout', it changes to the 'Debug layout' when running/debugging.
'Autosave project desktop' is set in my environment options.
For 'Default layout':
How can I permanently hide the structure view(pane)?
Closing or un-pinning it does not hold between sessions.
How can I keep an opened group in the Tool Palette open between sessions?
All groups are closed again when I start a new IDE session.
For 'Debug layout':
A. How can I permanently hide the call stack view(pane)?
Closing or un-pinning it does not hold between sessions.
I have read How to set default compiler options for XE2? but that is about project options, not IDE configuration.
Thanks,
Jan

Like TLama already quoted you need to save your desktop layout. This was already possibly in your Delphi 2007 IDE.
Arrange the panels the way you want to, respectively hide/pin/unpin/... them. Then click "save your current desktop" in the Desktop panel.
Same goes for debugging. Layout your debug desktop while debugging and save it. But you have to make it your default debug desktop. Goto Menu > View > Desktops > Set Debug Desktop.
I don't know if you are able to keep opened groups in the tool palette.

I tried View > Desktops > Set Debug Desktop but it didn't seem to work correctly, instead what worked is View > Desktps > Save Desktop and then select the option Debug Layout in the window that appears and click OK.

Related

Delphi Executable starts in debug mode

Whenever a Executable is opened, the delphi IDE opens as like debug mode. what settings has changed in my IDE?
Can any one help me!
Update: 1. Build taken in other machine also causing this issue.
How come a opening an EXE, starts the IDE?
Default debugger was modified from vcjitdebugger to delphi debugger. So in case of exception delphi instance was started. It can me modified as below:
You need to delete the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
On a 64 bit system delete this key also:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
At the top of your IDE, you have a combo box with the available layouts of the IDE.
You probably have ‘Debug layout’ selected instead of ‘Default layout’ or so...
When you have opened a project, select 'Default layout' and then it will persist that choice for the next time you open a project.

Delphi 10 Seattle do NOT open last used project on start

I'm new to Delphi, coming from Visual Studio it's a simple question (I guess): how do I prevent Delphi 10 Seattle to open last use project(group) when I start the IDE?
I've found some information about the .dsk file and what it does:
The .dsk file records your current settings for:
Desktop layout
Breakpoints
Watch items
Files currently open in the IDE
When you reopen the project later, the .dsk file is read, and your
desktop layout, your breakpoints, and your watches are all restored.
Also, all files that were opened when the project was closed are
opened again, regardless of whether they are used by the project.
I'm fine with that when I open a project. But please do not open it when I start the IDE. Mostly I want to start or open another project than the last one I was working on.
I've searched the options and the internet, but couldn't find a solution. Anyone?
Disable "Project desktop" in the IDE Autosave options (Tools\Options\Envinroment options).
But please do not open it when I start the IDE. Mostly I want to start or open another project than the last one
Granted, I do no have Seattle at hands, I settled in XE2.
But try changing the shortcut.
-np: No welcome page. Does not display the welcome page after starting the IDE. np also stands for No Project. Independently of Environment Options Project desktop the last opened project will not be opened
http://docwiki.embarcadero.com/RADStudio/Tokyo/en/IDE_Command_Line_Switches_and_Options
saving the layout and position of the tool windows like Refactorings,
That is what the "Layout" combo-box on the "Desktop" toolbar does. Unless you want different layouts in different projects. R-click over your IDE's tool buttons or go View|Toolbars menu to turn "Desktop" bar on. Alternatively use View|Desktops menu.

i lost windows 7 effects after accidently modifiying 'compiled resource script '?

my forms look dull and windows 95 like in a large project that i have been programming(cant program all over again) i accidently modified 'comiled resource script ' for that project using a text editor,when i reopened my project it asked if i want to recreate some file to which i clicked yes. now my form look dull and windows 95 style, adding xpmanifest component does bring them back to xp theme but what about windows 7,i do not have windows7/vista so i cant test if my forms behave like win7 forms on win7 or not(but probably they'l look and feel like xp) how to make them win 7 style again
help!
i am using delphi 2010
Under the Project | Options menu, select the Application Section, then make sure there is a check box in Enable runtime themes.
With this enabled your forms should look good in Vista and Windows 7.
This replaces the need for the XpManifest component.
You can further enhance the look by adjusting the property of GlassFrame on each form.
First check "Project/Options/Application/Enable runtime themes" checkbox; it should be checked to enable Vista/Win7 "look and feel"
Updated
Open your project in IDE. Click "Project" from the main menu. From the "Project" menu click "Options..." - it is the last item. Now "Project Options" dialog appears. On the left panel click "Application". On the right panel you should see "Enable runtime themes" checkbox. It should be checked to enable theme support.
By deleting *.res file you can loose some project settings, but you can restore these settings from the "Project Options" dialog.
More important than ALL the advice on how to fix it. GET A REVISION CONTROL SYSTEM! And mistakes like this will be easy to fix. Two popular ones that are easy to use
git
svn (this is actually a shell extension that includes SVN)

Delphi 2009 RAD Studio - Desktop Selector not Working

In the Delphi 2009 RAD Studio, there is a drop-down combo box where you can select the desktop configuration, i.e. "Default Layout", "Debug Layout, "Classic Undocked", etc. This has stopped working for me, i.e. when I select a desktop, nothing happens. I think I once "customized" the toolbar, by removing the drop-down combo box, and then I added it again, and ever since it has been dead. Is this a known bug? Is there a cure?
Create a new user account on your computer, call it "Testing" and log in there. Now load up delphi and try this desktop layout button. If it's now working in this alternative desktop account, then it's something in your registry settings under this key:
HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0
Try setting the keys named DesktopName and RuntimeDesktopName under the Session key
HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0\Session\DesktopName=Default Layout
HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0\Session\RuntimeDesktopName=Debug Layout
Is it still switching configurations when you run the project or when you go back to coding?
Have you tried to create new custom configurations, save them and switch manually with the combo?
My guess is it's something wrong saved in the Registry. You could try (after saving your current registry) to get a (good) D2009 registry from another install where it works, and apply it to your machine. If it works again you'll have a way to figure it out by diffing the regs. If not you may have to reinstall D2009 (or at least try"repair").
DISCLAIMER: yadda yadda about touching the Registry...

Delphi 2010 How to Set The Initial Folder of the IDE Open Project Dialog

Does anyone know how to set the initial folder of the open project or open file dialog in the Delphi 2010 IDE? For the first time I installed D2010 on a USB hard drive and the open dialog always reverts to the windows drive -D while Delphi is on Drive R.
In Tools|Options|Environment Options, you can set the Default Project directory.
Just to clarify for those who (like me) are looking at their "Environment variables" page in the options.. It's not the environment variable BDSPROJECTSDIR! Neither is it any of the other environment variables!
Have a look at the root level item in the options screen, "Environment options", at the bottom of that page is the "Default project" setting. (easy to miss I guess)
Just checked.. In XE6 and 10.1 the option is still in the same place.
(Thanks to TheSteven and Bruce McGee for providing the answer. Unfortunately, the eureka moment is not very visible in the comments to the last post)

Resources