SlideShare a Scribd company logo
Program Design


  For Event Driven
   Programming



                     1
Your Design
 Should include the following:
1. Labelled GUI Sketches
2. A Control Dictionary
3. A Data Dictionary
4. A description of program flow: One of an
   Action List, Jackson Structure
   Diagram, flow-chart or pseudo-code:
5. A Test Plan

                                              2
GUI Sketches
All controls must be labelled!


                            pctBounce




                                        3
Control Identifiers
All Controls should be named using a 3 letter
prefix with a descriptive name (so not txt1)

  Button        btn       e.g. btnQuit
  Label         lbl       e.g. lblResult
  TextBox       txt       e.g. txtName
  Picturebox    pct       e.g. pctEnemy
  Timer         tmr       e.g. tmrMove
  MenuItem      mnu       e.g. mnuSave
  Radiobutton   rdo       e.g. rdo80Gb
  Combobox      cbo       e.g.cboThree
                                                4
Control Dictionary
    Details of: Name, Type, Purpose and Properties.
        Include any Properties of a control that you change
        (e.g. timer interval)

Name             Type    Purpose                          Properties

Form1            Form    Contains the main game playing   Size = 600 x 500
                         area
tmrCountdown     Timer   Counts down from 60 to 0 to      Enabled = True
                         time-out the game.               Interval = 1000


…                …       …                                …




                                                                             5
A Data Dictionary

Table with details of: Name, Type and Purpose

  Name    Type      Purpose
  vmove   Integer   The number of pixels pctBounce will be
                    moved on the Y axis.
  …       …         …



All important variables should be included



                                                             6
Action List
    All event need to be described:
Form    Trigger     Event Handler         Description
Login   OK button   btnOK_Click()         The username and password the user has
        clicked                           entered into the text boxes txtUserName
                                          and txtPass are checked against the
                                          correct response (“User1” and “access”).
                                          If correct, the Login form is closed and the
                                          main form opened.
                                          If incorrect the number of incorrect
                                          counts (intWrongGuess) has 1 added.
                                          If there are 3 incorrect attempts the Form
                                          is closed.
Form1   Timer       tmrCountDown_tick()   Countdown (intTimeLeft) is decreased by
        counts down                       one and the result shown (lblTime).
        1 second                          If intTimeLeft = 0, the final score is shown
                                          (lblScore) and the timer is stopped.
…       …           …                     …
                                                                                         7

More Related Content

PPTX
Event driven theory
PPTX
Controls
PPTX
Input output
PPTX
Decisions
PPTX
Simple debugging
PPTX
Data types vbnet
PPTX
Using loops
PPTX
Data types vbnet
Event driven theory
Controls
Input output
Decisions
Simple debugging
Data types vbnet
Using loops
Data types vbnet

Viewers also liked (15)

PPTX
Decisions
PPTX
Simple debugging
PPTX
Software development lifecycle
PPT
Ch 3 event driven programming
PPTX
Ndu06 typesof language
PPTX
Data structures vb
PPTX
Design documentation
PPT
Algorithms
PPTX
Event driven programming amazeballs
DOCX
Event oriented programming
PPT
Event+driven+programming key+features
PPTX
Event driventheory
PDF
Writing algorithms
PPTX
Pseudocode flowcharts
PPT
Algorithmsandflowcharts1
Decisions
Simple debugging
Software development lifecycle
Ch 3 event driven programming
Ndu06 typesof language
Data structures vb
Design documentation
Algorithms
Event driven programming amazeballs
Event oriented programming
Event+driven+programming key+features
Event driventheory
Writing algorithms
Pseudocode flowcharts
Algorithmsandflowcharts1
Ad

Similar to Design for edp (20)

DOC
Visual basic
PPT
4.7.14&17.7.14&23.6.15&10.9.15
DOC
Practicalfileofvb workshop
DOC
9b4c1 vb(pd)
DOC
9b4c1 vb(pd) (2)
DOCX
Docimp
PPTX
Intro to visual studio 2008
PDF
Lab1
PDF
Visualbasic tutorial
PPTX
Controls events
PPTX
Module iii part i
PDF
PPSX
DOCX
c programming 109.docx
PPTX
VISUAL BASIC 6 - CONTROLS AND DECLARATIONS
PDF
Stop watch and array
DOCX
Cis 355 ilab 4 of 6
DOCX
CIS/355 ilab 4 of 6
PPTX
Basic controls of Visual Basic 6.0
PDF
19.Advanced Visual Basic Lab.pdf
Visual basic
4.7.14&17.7.14&23.6.15&10.9.15
Practicalfileofvb workshop
9b4c1 vb(pd)
9b4c1 vb(pd) (2)
Docimp
Intro to visual studio 2008
Lab1
Visualbasic tutorial
Controls events
Module iii part i
c programming 109.docx
VISUAL BASIC 6 - CONTROLS AND DECLARATIONS
Stop watch and array
Cis 355 ilab 4 of 6
CIS/355 ilab 4 of 6
Basic controls of Visual Basic 6.0
19.Advanced Visual Basic Lab.pdf
Ad

Design for edp

  • 1. Program Design For Event Driven Programming 1
  • 2. Your Design Should include the following: 1. Labelled GUI Sketches 2. A Control Dictionary 3. A Data Dictionary 4. A description of program flow: One of an Action List, Jackson Structure Diagram, flow-chart or pseudo-code: 5. A Test Plan 2
  • 3. GUI Sketches All controls must be labelled! pctBounce 3
  • 4. Control Identifiers All Controls should be named using a 3 letter prefix with a descriptive name (so not txt1) Button btn e.g. btnQuit Label lbl e.g. lblResult TextBox txt e.g. txtName Picturebox pct e.g. pctEnemy Timer tmr e.g. tmrMove MenuItem mnu e.g. mnuSave Radiobutton rdo e.g. rdo80Gb Combobox cbo e.g.cboThree 4
  • 5. Control Dictionary Details of: Name, Type, Purpose and Properties. Include any Properties of a control that you change (e.g. timer interval) Name Type Purpose Properties Form1 Form Contains the main game playing Size = 600 x 500 area tmrCountdown Timer Counts down from 60 to 0 to Enabled = True time-out the game. Interval = 1000 … … … … 5
  • 6. A Data Dictionary Table with details of: Name, Type and Purpose Name Type Purpose vmove Integer The number of pixels pctBounce will be moved on the Y axis. … … … All important variables should be included 6
  • 7. Action List All event need to be described: Form Trigger Event Handler Description Login OK button btnOK_Click() The username and password the user has clicked entered into the text boxes txtUserName and txtPass are checked against the correct response (“User1” and “access”). If correct, the Login form is closed and the main form opened. If incorrect the number of incorrect counts (intWrongGuess) has 1 added. If there are 3 incorrect attempts the Form is closed. Form1 Timer tmrCountDown_tick() Countdown (intTimeLeft) is decreased by counts down one and the result shown (lblTime). 1 second If intTimeLeft = 0, the final score is shown (lblScore) and the timer is stopped. … … … … 7