12. Construire aplicatie pentru afisarea unei cifre in mod electronic. Sa se foloseasca procedura pentru afisarea valorilor introduse de la tastatura. MTB Se construiesc 7 hexagoane subtiri numite "Hexagon1"..."Hexagon7" si se areanjeaza pe ecran pentru a semana cu un format de cifra electronica. Se construieste un field cu numele "Nr" Se construieste si un buton. Script pentru buton -------------------- to handle buttonClick local nrtext nrtext = text of Field "Nr" conditions when nrtext = 0 set rgbFill of Polygon "Hexagon1" to 0,0,0 set rgbFill of Polygon "Hexagon2" to 0,0,0 set rgbFill of Polygon "Hexagon3" to 0,0,0 set rgbFill of Polygon "Hexagon4" to 255,255,255 set rgbFill of Polygon "Hexagon5" to 0,0,0 set rgbFill of Polygon "Hexagon6" to 0,0,0 set rgbFill of Polygon "Hexagon7" to 0,0,0 when nrtext = 1 set rgbFill of Polygon "Hexagon1" to 255,255,255 set rgbFill of Polygon "Hexagon2" to 255,255,255 set rgbFill of Polygon "Hexagon3" to 0,0,0 set rgbFill of Polygon "Hexagon4" to 255,255,255 set rgbFill of Polygon "Hexagon5" to 255,255,255 set rgbFill of Polygon "Hexagon6" to 0,0,0 set rgbFill of Polygon "Hexagon7" to 255,255,255 when nrtext = 2 set rgbFill of Polygon "Hexagon1" to 0,0,0 set rgbFill of Polygon "Hexagon2" to 255,255,255 set rgbFill of Polygon "Hexagon3" to 0,0,0 set rgbFill of Polygon "Hexagon4" to 0,0,0 set rgbFill of Polygon "Hexagon5" to 0,0,0 set rgbFill of Polygon "Hexagon6" to 255,255,255 set rgbFill of Polygon "Hexagon7" to 0,0,0 -- si pentru celelalte cifre la fel end conditions end