7/25/2019 lecture 2_more controls.ppt
1/30
LECTURE 2
7/25/2019 lecture 2_more controls.ppt
2/30
2-2
7/25/2019 lecture 2_more controls.ppt
3/30
Used to run/activate an Event Procedure Click event
2-3
7/25/2019 lecture 2_more controls.ppt
4/30
Used for Output on a form
Identication of objects
irections/Information
Cannot be modied b! user
2-"
7/25/2019 lecture 2_more controls.ppt
5/30
7/25/2019 lecture 2_more controls.ppt
6/30
Used as containers for ot&er controls suc&as radio buttons and c&eck bo$es
Improves readabilit! of form
#e$t Propert! %&at is displa!ed on t&e top ed(e of t&e (roup
bo$
2-+
7/25/2019 lecture 2_more controls.ppt
7/30
Used for user input/data entr! 'llo,s t&e user to select or deselect or
more in an! (roup
C&ecked Propert! C&ecked . #rue
Unc&ecked . alse
C&eckC&an(ed Event
2-0
7/25/2019 lecture 2_more controls.ppt
8/30
Used for user input/data entr!
'llo,s t&e user to select onlyin an!(roup
irst create a (roup and t&en create eac&radio button inside t&e (roup
C&ecked Propert! C&ecked . #rue
Unc&ecked . alse
C&eckC&an(ed Event
2-1
7/25/2019 lecture 2_more controls.ppt
9/30
ispla!s/contains a picture/(rap&ic Ima(e Propert!
Complete pat& and lename of (rap&ic
bmp (if 4includin( animated5 jp( pn(ico emf ,mf
6i7e8ode Propert! 6tretc&Ima(e causes (rap&ic to be resi7ed to
matc& t&e si7e of t&e control 9isible Propert!
2-:
7/25/2019 lecture 2_more controls.ppt
10/30
)order6t!le Propert! ;one
i$ed6in(le
i$ed3
2-?-Click to select/deselectmultiple controls
Use t&e mouse to dra( a selection bo$
around multiple controls#o deselect all selected controls clickelse,&ere on t&e form
2-
7/25/2019 lecture 2_more controls.ppt
12/30
2-2
Multiple selected controls,observe selection handles.
Using mouse to drag aselection box aroundmultiple controls
6tart&ere
ra(to &ere
7/25/2019 lecture 2_more controls.ppt
13/30
Use ormat 8enu or ?a!out #oolbar to 'li(n t&em to eac& ot&er
8ake same si7e
8odif! t&e spacin( bet,een t&em
8ove t&em as a (roup 6et t&eir common properties
2-3
7/25/2019 lecture 2_more controls.ppt
14/30
#o t&e user t&e Interface s&ould be Eas! to understand
amiliar
Comfortable
Or(ani7ed
6ans 6erif onts are best not boldface or lar(e
Color ;eutral Overall
@e!board 'ccessible
2-"
7/25/2019 lecture 2_more controls.ppt
15/30
'lso referred to as =ot @e!s Underlined ?etter User presses '?# A underlined letter
Use %indo,s-6tandard @e!s ened usin( #e$t Propert!
2-*
Text=&OK
Text=E&xit
7/25/2019 lecture 2_more controls.ppt
16/30
efault )utton Identied visuall! on orm b! its darker outline
>esponds to E;#E> ke!
ormBs 'ccept)utton Propert!
Cancel )utton >esponds to E6C ke!
ormBs Cancel)utton Propert!
2-+
7/25/2019 lecture 2_more controls.ppt
17/30
One control on a orm al,a!s &as t&e ocus ;ot all control t!pes can receive t&e focus#ab6top Propert! 4applicable onl! for
controls t&at are capable of receivin( t&efocus5 esi(nates ,&et&er a control is allo,ed to receive
t&e focus #rue or alse
2-0
7/25/2019 lecture 2_more controls.ppt
18/30
User s&ould be able to use #') ke! tomove t&e focus t&rou(& a form in anor(ani7ed manner top to bottom left to
ri(&t#abInde$ Propert!
;umber in tab seDuence
< for rst control to receive t&e focus ,&en t&e
form loads Use 9ie, 8enu #ab Order to set
2-1
7/25/2019 lecture 2_more controls.ppt
19/30
9ie, menu #abOrder Click on eac& control in seDuence to set#abInde$ propert! of controlsautomaticall!
2-:
7/25/2019 lecture 2_more controls.ppt
20/30
6tartPosition Propert! 8anual
Center6creen
%indo,sefault?ocation
%indo,sefault)ounds
CenterParent
2-2