Specification for PB control programming

Source: Internet
Author: User

Author: Xingda Computer technology company (www.study01job.com) Guo Baoli

I. Public part

A. You should use meaningful names for all controls as much as possible, and important controls do not allow the use of ambiguous names such as pb_1.

B. Large fonts: Each window control font is Arial, the font size is 12th, and the character color is black. Small font: Each window control font for the song, the font size is 9th, the word color is black.

C. Display control and input control background color separate, display the control is gray (window colors), the input control is white.

D. The input area and display area are placed separately.

E. The buttons are arranged in a compact position, positioned vertically on the right side of the window and placed on the right at the bottom of the window, because the left-handed operator is a minority.

F. The character class control is aligned to the left, the number class control is right-aligned, and the Format property must be set in the desired format; The date control must be guaranteed to display the required date format fully and apply the YYYY-MM-DD style. and have a leading 0 (to avoid the 2000 problem), you can use left alignment or alignment.

The recommended height for the G.commandbutton control is 104.

Second, the control rules

1. Static text box

Static text box naming rules: St + ' _ ' + name (if label is not renamed).

The appearance stipulates as follows:

Background color: buttonface;

Foreground color: black;

Edge; box: none;

High; degree: 72.

; It is recommended to add a full-width colon (:) thereafter.

2. Single-line edit box

Single-line edit box naming rule: SLE + ' _ ' + name.

(1) Appearance

Background color: white;

Foreground color: black;

; edge; frame: 3D lowered;

; high; degree: 72.

(2) Procedure description

A. Responding to events recommend customizing Keydown events and try not to use Modify events.

B. The control background changes to dark blue when the focus is obtained, the font color turns yellow, and the default color is restored when the focus is lost.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.