问题
Somoene knows if i can setup my IDE for display source code in one monitor and frm in another? I talk about the same .pas because 2 different .pas i can view in each monitor.
回答1:
Not sure about XE, but in 2007 you can go to Tools->Options
to bring up the options dialog, then uncheck "Embedded Designer"
under VCL Designer
.
After restarting the IDE, the form design will be in an undocked (and undockable) window. The code editor will then be detached from the form, so can be moved to another monitor.
However:
If you move the form around, the forms default position (Left and top) will change, and may move off the default monitor if you use Form.Position := poDesigned
. That's the main reason I prefer the embedded designer.
Edit
Note as well that all of the docked windows (object inspector, watches, project manager etc) can easily be undocked as well, then docked again.
回答2:
You can open multiple edit views of the same module (right-click in source code editor, select "New Edit Window" from the context menu).
回答3:
If you mean the source code (.pas) on one monitor and the visual designer (form) in another, use the Desktop Speedsetting in the IDE's toolbar, and set it to "Classic Undocked". Arrange the IDE the way you like between monitors, and then click the "Save Desktop" button next to the SpeedSetting dropdown. Name the layout you like, and then save it as your default desktop. Also see @ldsandon's comment about needing to uncheck the embedded designer in the IDE's options dialog as well.
I personally prefer the newer embedded designer layout (the default), and put the IDE on the secondary monitor with the application running in the primary one. You can then step through code in the debugger and view the output on the primary monitor at the same time.
来源:https://stackoverflow.com/questions/5643081/delphi-xe-form-and-source-in-dual-monitor