Presentation is loading. Please wait.

Presentation is loading. Please wait.

IS437: Spring 2006 Instructor: Dr. Boris Jukic Controls.

Similar presentations


Presentation on theme: "IS437: Spring 2006 Instructor: Dr. Boris Jukic Controls."— Presentation transcript:

1 IS437: Spring 2006 Instructor: Dr. Boris Jukic Controls

2 Learning objectives - Controls: text boxes radio buttons check boxes group boxes picture boxes - Some user-friendly features tab sequence (tabIndex, tabStop properties) focus method access key specification Controls can be enabled and disabled in Design Time

3 Text Boxes function: accept input from users important properties - Text (string of characters) - MultiLine (boolean: yes/no). I - ScrollBars - PasswordChar (if yes then appears masked) run-time property - SelectedText (text selected by user) e. g., text1.SelectedText methods: cut, copy, paste, clear

4 RadioButtons function: present mutually exclusive choices Examples male-female freshmen, sophomores, juniors, seniors important properties - Text - Checked (boolean) if a radio button is clicked, its Checked property is set to true, otherwise to false only one radio button in the choice set has its checked property set to true

5 RadioButtons: example

6

7 Check Boxes function: present independent choices Choices that are NOT mutually exclusive Example: product attributes perishable, imported, fragile important properties Text Checked (true or false)

8 Check Boxes: example If perishableCheckBox.checked = True Then ‘conduct procedures for Perishable Products... EndIf If importedCheckBox.checked = True Then ‘conduct procedures for Imported Products... EndIf If fragileCheckBox.checked = True Then ‘conduct procedures for Fragile Products... EndIf

9 GroupBox functions: (1) organize controls neatly (2) serve as container object - possible use: limit the scope of a set of radio buttons container objects: forms and groupboxes important properties: - Text

10 Some user-friendly features focus method tabStop (boolean) and TabIndex properties command buttons - keyboard access keys: for example E&xit - as AcceptButton or CancelButton of the form

11 Focus method Move the cursor to a particular textbox, e. g, Textbox2.focus

12 Tab stop & Tab Index

13 Access keys Alt + X

14 Accept & Cancel Button Designation AcceptButton and CancelButton are form properties. AcceptButton can be activated by the Enter key. CancelButton can be activated by the Escape key.

15 Disable controls set the Enabled property of a control to false during design-time during run-time e.g., command1.enabled = false


Download ppt "IS437: Spring 2006 Instructor: Dr. Boris Jukic Controls."

Similar presentations


Ads by Google