Event Driven Programming (1 Viewer)

velox

Retired
Joined
Mar 19, 2004
Messages
5,521
Location
Where the citi never sleeps.
Gender
Male
HSC
N/A
Hello

im stuck with this question from the davis book....
Examine the screen shot above taken from the hsc assistant: SDD CD-rom. This product was written using an event driven programming language. List the events that are likely to activate code for each control on this screen. Include a brief description of the processing that would likely occur for each event identified.

page 83 prelim book.
I cant get a scan of the program but it has a fair few radio buttons and check boxes. also some tabs.

any help is greatly appreciated!
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
An event driven program performs an action only when you first do something to it. So for example, when you clicked "Save" in your word document, an event inside the program is fired that executes code to save your document to disk.

Look at the screenshot, and see what can be manipulated to cause the program to respond.
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
For example the Radio Button could be using RadioChecked event, a Button could very well be using a ButtonClick event and for a checkbox it can be CheckedValue event, event names range from languages to languages.
 

velox

Retired
Joined
Mar 19, 2004
Messages
5,521
Location
Where the citi never sleeps.
Gender
Male
HSC
N/A
is this right?
There are many events that are likey to activate code for each control on this screen.

Firstly, there is the menu. Clicking on the file menu will show a series of options or commands while clicking on help, help could be found.

Since the program is like a self-test, the user will have to choose the question type. Either one of the other and not both at the same time.
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by wrx
is this right?
There are many events that are likey to activate code for each control on this screen.

Firstly, there is the menu. Clicking on the file menu will show a series of options or commands while clicking on help, help could be found.

Since the program is like a self-test, the user will have to choose the question type. Either one of the other and not both at the same time.
You didn't answer the question, it says "List".
 

velox

Retired
Joined
Mar 19, 2004
Messages
5,521
Location
Where the citi never sleeps.
Gender
Male
HSC
N/A
There are many events that are likey to activate code for each control on this screen.

Firstly, there is the menu. Clicking on the file menu will show a series of options or commands while clicking on help, help could be found.
this better?
Since the program is like a self-test, the user will have to choose the question type. Either one of the other and not both at the same time.

In the main window, there are two tabs, Preliminary and HSC. Pressing on any one of these tabs would have new topic options.

Within the tabs, there are quick-select options, such as All and None and Some. The person would click on the one that suits him/her the best. Or for Some he would select the options with ticks.
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
u might wanna be more descriptive, for example the tabs, perhaps the tab pages change when the user activates the TabClick event.
 

sunny

meh.
Joined
Jul 7, 2002
Messages
5,350
Gender
Male
HSC
2002
Originally posted by Winston
u might wanna be more descriptive, for example the tabs, perhaps the tab pages change when the user activates the TabClick event.
Might not be a good idea as this is getting language specific.
 

Winston

Active Member
Joined
Aug 30, 2002
Messages
6,128
Gender
Undisclosed
HSC
2003
Originally posted by sunny
Might not be a good idea as this is getting language specific.
not really... not all languages have that event, and besides, its just a conventional naming scheme from languages, and events can be custom made, but i'm just giving him a more clear blatant example of what a particular even will be.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top