1 / 10

Efficient Windows Programming Guidelines

Learn problem analysis, algorithm design, coding, and verification in Windows Programming with BCB. Discover VCL components, implement event handlers, and modify properties for desired functionalities. Make the most of TForm, TLabel, TEdit, and TButton elements.

Download Presentation

Efficient Windows Programming Guidelines

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

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

  3. 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 Windows Programming, C.-S. Shieh, KUAS EC, 2005

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

  5. 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) Windows Programming, C.-S. Shieh, KUAS EC, 2005

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

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

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

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

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

More Related