Delphi GUI Design Specifications and Guidelines [closed]

北城以北 提交于 2019-12-31 22:25:25

问题


I was looking for a way to standardize my applications layout to boost my productivity since I am wasting too much time positioning visual elements on every form and dialog. I started looking around and found on MSDN

Since Delphi VCL Designer use Pixels and all component Height and width are in pixels. I like to know if there is an easy way to apply those recommendations. or there is a Delphi equivalent

For exp: in the recommendations the edit boxs and the buttons should be the same height, but the default height in Delphi are 21 for the TEdit and 25 TButton. Changing this every time you drop a button is ridiculous.


回答1:


Since you are using delphi which only target the windows systems (for the moment) you must follow the Microsoft guidelines, so try checking the Windows User Experience Interaction Guidelines site which is an updated version of the link which you posted.

check these related links to the Windows visual guidelines

  • Windows Application UI Development
  • Windows User Experience Design Principles
  • How to Design a Great User Experience
  • Top Guidelines Violations
  • Powerful and Simple

and this from the embarcadero site

  • Designing User Interfaces

Additionally you can use plugins like GExperts or CnWizards to set the visual properties of multiple controls at once like (Width, Heights ,tab orders and others).




回答2:


This may not be the answer you're looking for; but approaching your question from the "I am wasting too much time..." angle you might be interested to look at the Developer Express Layout Control (http://www.devexpress.com/Products/VCL/ExLayoutControl/).

The nice thing about this component is that the layout specs can be held centrally in a "layout repository", so you can adjust spacing and look and feel for all forms on your control in one place.

It also does a pretty good job of importing existing forms and their controls so conversion isn't a major pain. They do say the layout control works best with developer express editors (which I use) so I cannot make any comment on any specific issues with "standard" VCL controls.

(Disclaimer: just a satisfied customer, no affiliation)




回答3:


Use Frames

You can improve the consistancy of your application by using frames.

If you have a screen or panel with controls that you use in more then one place, you can use one frame to drive all of them. The frame will look identical everywhere, because there's only one source.

You will only have to position your components once, saving time.
And if you put as much code as possible in the frame you'll also save time writing code.
Frames are best used in a newer Delphi version, as the implementation of Frames on older Delpi's is not 100% bug free.

On Delphi 2007 (which I use) they work great though.

See: What is the accepted way to use frames in Delphi?



来源:https://stackoverflow.com/questions/5737820/delphi-gui-design-specifications-and-guidelines

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