Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Programming, C.-S. Shieh, KUAS EC, 20051 Chapter 2 Application Design Flow.

Similar presentations


Presentation on theme: "Windows Programming, C.-S. Shieh, KUAS EC, 20051 Chapter 2 Application Design Flow."— Presentation transcript:

1 Windows Programming, C.-S. Shieh, KUAS EC, 20051 Chapter 2 Application Design Flow

2 Windows Programming, C.-S. Shieh, KUAS EC, 20052 Development Cycle Problem Analysis Algorithm Design Coding Verification

3 Windows Programming, C.-S. Shieh, KUAS EC, 20053 Windows Programming with BCB Graphic user interface design –Choose VCL components –Set up their prosperities Implement event handlers –Implement desired functionalities –Modify VCL components’ prosperities

4 Windows Programming, C.-S. Shieh, KUAS EC, 20054 What You Should Do Get acquainted with VCL components. Make good use of online help.

5 Windows Programming, C.-S. Shieh, KUAS EC, 20055 TForm Container of other VCL components, appeared as a window at run-time. Properties –Name (AnsiString) –Caption (AnsiString) –Width (int), Height (int), Left (int), Top (int) –Color (TColor), Cursor (TCursor), Icon (TIcon) –Visible (bool) –BorderIcons (TBorderIcon), BorderStyle (TFormBorderStyle), BorderWidth TFormBorderStyle), FormStyle (TFormBorderStyle)

6 Windows Programming, C.-S. Shieh, KUAS EC, 20056 TForm (cont) Events –OnCreate, OnClose Methods –Close() –Show(), Hide()

7 Windows Programming, C.-S. Shieh, KUAS EC, 20057 TLabel Non-windowed control that displays text on a form. Properties –Caption (AnsiString), Font (TFont)

8 Windows Programming, C.-S. Shieh, KUAS EC, 20058 TEdit Used to retrieve text that users type. Properties –Text (AnsiString) –Enabled (bool) Events –OnChange, OnKeyDown Methods –Clear()

9 Windows Programming, C.-S. Shieh, KUAS EC, 20059 TButton Creates a pushbutton control that users choose to initiate actions. Properties –Caption (AnsiString), Font (TFont) –Enabled (bool) Events –OnClick Methods –Click()

10 Windows Programming, C.-S. Shieh, KUAS EC, 200510 What You Should Do Walk through the following sections in our textbook –2.1-2.4, 2.6-2.7


Download ppt "Windows Programming, C.-S. Shieh, KUAS EC, 20051 Chapter 2 Application Design Flow."

Similar presentations


Ads by Google