zadaci – komponente izbora : checkbox , radiobutton , radiogroup , listbox , combobox
DESCRIPTION
Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox. Komponente i z bora se nalaze na paleti Standard. CheckBox. Koristi se za rešavanje zadataka gde je potrebno omogućiti uključivanje ili isključivanje jedne ili više opcija. Važna svojstva : - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/1.jpg)
![Page 2: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/2.jpg)
Komponente izbora se nalaze na paleti Standard
![Page 3: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/3.jpg)
CheckBox
Koristi se za rešavanje zadataka gde je potrebno omogućiti uključivanje ili isključivanje jedne ili više opcija.
Važna svojstva:–Checked – određuje stanje CheckBox-a (uključen,
isključen)–Caption - natpis desno od ček boksa
![Page 4: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/4.jpg)
RadioButton i RadioGroupRadioButtonRadioButtonUključenjem jednog RadioButton-a automatski se isključuju sva
ostala. Koristi se najčešće u grupama
RadioGroupRadioGroup predstavlja komponentu koja sadrži više RadioButton-a smeštenih u posebnom okviru (grupi)
Važna svojstva:–Columns – određuje broj kolona u kojima su dugmad
raspoređena–Items – stavke na spisku u grupi–Itemindex – određuje index trenutno aktivnog dugmeta
![Page 5: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/5.jpg)
1. Kreiraj aplikaciju kojom se unosi dužina stranice, a onda računa površina i obim izabranog objekta.
![Page 6: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/6.jpg)
![Page 7: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/7.jpg)
![Page 8: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/8.jpg)
ListBoxUobičajen prozor za listu sa spiskom opcija koje se mogu izabrati.
Po potrebi se pojavljuju trake za pomeranje vidokruga prozora (scrool bar).
Moguće je prikazivanje sadržaja liste u više kolona.Kada pritisnete neko slovo na tastaturi postaće aktivna stavka u
listi koja počinje tim slovom.Svojstva:–Columns – određuje broj kolona u kojima su opcije raspoređene–Items – stavke na listi–Itemindex – određuje index trenutno aktivne opcije
(indeksiranje počinje od nule)
![Page 9: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/9.jpg)
2. Kreiraj aplikaciju koja izborom boje iz liste boji formu
![Page 10: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/10.jpg)
![Page 11: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/11.jpg)
ComboBoxPredstavlja kombinaciju EditBox-a i ListBox-a.Korisnik može izabrati opciju iz padajuće liste ili uneti
početno slovo opcije da bi je aktivirao.Svojstva:–Text – tekst u polju za unos.–Items – stavke na listi–ItemIndex – određuje index trenutno aktivne opcije
(indeksiranje počinje od nule)
![Page 12: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/12.jpg)
3. Kreiraj aplikaciju koja izborom boje iz liste boji formu, ali menja i boju slova u labeli “oboji formu”.
![Page 13: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/13.jpg)
![Page 14: Zadaci – Komponente izbora : CheckBox , RadioButton , RadioGroup , ListBox , ComboBox](https://reader030.vdocuments.mx/reader030/viewer/2022012314/56813e56550346895da8476e/html5/thumbnails/14.jpg)