Download presentation
Presentation is loading. Please wait.
1
SEMAFOR
3
Dugme poništi Private Sub cmdponisti_Click() Txt1 = "" CRVENA.BackColor = vbWhite ZUTA.BackColor = vbWhite ZELENA.BackColor = vbWhite End Sub
4
Dugme PROVJERI TEXT Private Sub cmdprovjeritext_Click() Txt1 = UCase(Txt1) If Txt1 = "CRVENA" Then CRVENA.BackColor = vbRed Else CRVENA.BackColor = vbWhite End If If Txt1 = "ZUTA" Then ZUTA.BackColor = vbYellow ZUTA.BackColor = vbWhite If Txt1 = "ZELENA" Then ZELENA.BackColor = vbGreen ZELENA.BackColor = vbWhite End Sub
5
If Txt1 = "crvena" Or Txt1 = "CRVENA" Or Txt1 = "Crvena" Then
CRVENA.BackColor = vbRed Else CRVENA.BackColor = vbWhite End If If Txt1 = "zuta" Or Txt1 = "ZUTA" Or Txt1 = "Zuta" Then ZUTA.BackColor = vbYellow ZUTA.BackColor = vbWhite If Txt1 = "zelena" Or Txt1 = "ZELENA" Or Txt1 = "Zelena" Then ZELENA.BackColor = vbGreen ZELENA.BackColor = vbWhite
6
If Txt1 = "crvena" Or Txt1 = "CRVENA" Or Txt1 = "Crvena" Then
CRVENA.BackColor = vbRed ElseIf Txt1 = "zuta" Or Txt1 = "ZUTA" Or Txt1 = "Zuta" Then ZUTA.BackColor = vbYellow ElseIf Txt1 ="zelena" Or Txt1 ="ZELENA" Or Txt1 ="Zelena"Then ZELENA.BackColor = vbGreen Else MsgBox ("nije ni jedna od trazenih boja") End If
7
Private Sub cmdprovjerioption_Click()
If Opt1 = True Then CRVENA.BackColor = vbRed Else CRVENA.BackColor = vbWhite End If If Opt2 = True Then ZUTA.BackColor = vbYellow ZUTA.BackColor = vbWhite If Opt3 = True Then ZELENA.BackColor = vbGreen ZELENA.BackColor = vbWhite End Sub
8
If Opt1=True Then CRVENA.BackColor = vbRed ZUTA.BackColor = vbWhite ZELENA.BackColor = vbWhite ElseIf Opt2=True Then ZUTA.BackColor = vbYellow CRVENA.BackColor = vbWhite ElseIf Opt3=True Then ZELENA.BackColor = vbGreen End if
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.