第¸‰ç«  ...

Download 第¸‰ç«   œ¬è¼¸…¥èˆ‡è¼¸‡

Post on 03-Jan-2016

46 views

Category:

Documents

0 download

Embed Size (px)

DESCRIPTION

第三章 基本輸入與輸出. 3-1 表單( Form ) 3-2 標籤盒( Label ) 3-3 文書盒( Edit ) 3-4 功能鈕( Button ) 3-5 ShowMessage 程序 3-6 InputBox 函式. - PowerPoint PPT Presentation

TRANSCRIPT

  • 3-1 Form 3-2 Label 3-3 Edit 3-4 Button 3-5 ShowMessage 3-6 InputBox

  • DelphiFormFormLabelEditButtonShowMessageMessageBoxInputBox

  • 3-1FormFormCaptionCaptionForm1Name

    DelphiNameForm1frmName1Name2Form1Form2...FormfrmLabellblEditediButtonbtnbtnStartbtnCloseButtonStartClose

    FormFormCreate

  • 3-1aCaptionHelloHow are youFormCreateFormClickFormDblClick:1. DelphiVB2.FormCreate

  • Name FormForm1Caption FormForm1HeightFormPixelWidth FormPixelLeftFormPixelTopFormPixelBorderSstleForm6bsSizeablebsDialogbsNonebsSinglebsSizeablebsSizeToolWinbsToolWindow

  • Color FormclBtnFace+Font (TFont) *ColorFormclWindowText *NameMS Sans Serif *Size88 +Style[ ] *fsBoldTrueFalse *fsItalicTrueFalse*fsStrikeOutTrueFalseFalse*fsUnderlineTrueFalseFalseIcon Form[None]VisibleFormTrueWindowStateForm3wsNormalwsNormal-FormwsMinimized-FormwsMaximized-Form

  • [1]* [2]++-

  • FormCreateDelphiFormFormClickFormClickFormDblClick FormDblClickFormActivate FormFormActivateFormFormCreateFormFormPaint FormFormPaint

  • 3-2LabelLabel

  • 3-2aLabelHow are youLabelLabelYou are Welcome

  • LabelLabelForm Name NameLabel

    Caption CaptionLabel Align alBottomalClientalLeftalNonealRightalTop Alignment taCentertaLeftJustifytaRightJustify AutoSize Label

  • 3-3EditLabelEditEdit TextStringEdit1 MaxLength00 PasswordChar Edit**#0 ReadOnlyTextFalse HintEdit ShowHintHintFalse

  • 3-3aEditLabel

    Form1TFormNameForm1Edit1TEditNameEdit1TextPasswordChar* * MaxLength88HintShowHintTrueHintLabel1TLabelNameLabel1Caption

  • 3-3a:FormLabelButtonCaptionEditText

  • 3-4ButtonButtonButtonClickCaption

  • 3-4a:DelphiVBEditLabelTextCaptionStrToIntStrToFloatIntToStrFlootToStr

  • 3-4b

  • 3-5ShowMessageDelphiShowMessageInputBoxMessageBoxShowMessageMsgprocedure ShowMessage(const Msg: string);

  • 3-5aShowMessage

  • 3-6InputBoxShowMessage InputBox ACaptionAPromptADefaultString function InputBox(const ACaption, APrompt, ADefault: string): string;

  • 3-6aInputBox

  • 3-7MessageBoxDelphiMessageBoxWindows API MessageBox m := MessageBox (n)1. 2. mnInteger3. n

  • 012(A)(R)(I)3(Y)(N)4(Y)(N)5(R)6(R)16 32 48 64 i 0256512

  • 4.

  • 3-7aMessageBox

  • 1.s=v0t+g.t2vot2.y = f(x) = x3-6x2+11x-6xy3.(1)(2)

View more