Delphi XE Form and Source in dual monitor

会有一股神秘感。 提交于 2019-12-23 17:47:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!