Abdullah 37 Posted May 21, 2010 Share Posted May 21, 2010 Arkadaşlar sizlere sorum var. 1) Ben bir saat yapmak istedim. Yeni bir label oluşturdum.On Preload kısmına Saniye = System.GetTime(TIME_FMT_MIL); Dakika = System.GetTime(TIME_FMT_MIN); Saat = System.GetTime(TIME_FMT_HOUR); Label.SetText("Label1", ""..Saat..":"..Dakika..":"..Saniye.."") Page.StartTimer(100);[/CODE] bu kodları yazdım. On Timer kısmına [CODE]Saniye = System.GetTime(TIME_FMT_MIL); Dakika = System.GetTime(TIME_FMT_MIN); Saat = System.GetTime(TIME_FMT_HOUR); Label.SetText("Label1", ""..Saat..":"..Dakika..":"..Saniye.."")[/CODE] bu kodu yazdım.Ama sonuç resimdeki gibi arkadaşlar acaba nerde hata var. 2) Biz bu saati label yerine bir input içine nasıl yazdırırız 3) Bu inputu kilitleyebilirmiyiz.Yani projemizi çalıştırdığımız zaman input içine tıkladığımızda imleç olmasın.Sadece saat gözüksün.İçine yazı falan yazılamasın Link to comment Share on other sites More sharing options...
KintaRo Posted May 21, 2010 Share Posted May 21, 2010 1- Saniye kısmını yanlış yapmışsın, MIL = Milisecond yani milisaniye, SEC'i seçmen gerekiyordu. SEC = Second yani saniye. Saniye = System.GetTime(TIME_FMT_SEC);[/CODE] Bu şekilde olacak. 2. Label yerine input koy kodlarıda şu şekilde değiştir: [CODE]Input.SetText("Input1", ""..Saat..":"..Dakika..":"..Saniye.."")[/CODE] ve Inut nesnesinin özelliklerinden Attiributes kısmından Enabled seçeneğinin işaretini kaldır. Böylece editlenemez hale gelecektir. Link to comment Share on other sites More sharing options...
Abdullah 37 Posted May 21, 2010 Author Share Posted May 21, 2010 1- Saniye kısmını yanlış yapmışsın, MIL = Milisecond yani milisaniye, SEC'i seçmen gerekiyordu. SEC = Second yani saniye. Saniye = System.GetTime(TIME_FMT_SEC);[/CODE] Bu şekilde olacak. 2. Label yerine input koy kodlarıda şu şekilde değiştir: [CODE]Input.SetText("Input1", ""..Saat..":"..Dakika..":"..Saniye.."")[/CODE] ve Inut nesnesinin özelliklerinden Attiributes kısmından Enabled seçeneğinin işaretini kaldır. Böylece editlenemez hale gelecektir. Hocam Input nesnesinin Enabled seçeneğini kaldırınca nesne içinde gözüken yazıların renkleri pasifleşiyor bunun için birşey yok demi hocam. Acaba enabled seçeneği yerine bir kod yardımı ile bu inputu editlenemez haline getirebilirmiyiz? Link to comment Share on other sites More sharing options...
KintaRo Posted May 21, 2010 Share Posted May 21, 2010 renginin değişmemesi için Enabled'a dokunma özelliklerde read only var onu işaretle. O zaman istediğin olur sanırım Link to comment Share on other sites More sharing options...
Abdullah 37 Posted May 22, 2010 Author Share Posted May 22, 2010 renginin değişmemesi için Enabled'a dokunma özelliklerde read only var onu işaretle. O zaman istediğin olur sanırım Hocam konu açmayayım diye buraya devam ediyorum yeni bir sorum var. 1) Şimdi ben oluşturduğum bu saat inputunun içinde tarihide (22.05.2010 Cumartesi gibi) göstermesini istiyorum onun için nasıl bir kod yazmam gerekiyor. 2) Sistemin sesini açıp kısma yapabiliyormuyuz? Eğer yapılıyorsa bunun kodu nedir ? Link to comment Share on other sites More sharing options...
egemynet Posted May 22, 2010 Share Posted May 22, 2010 page1 / onpreload local Gun = System.GetDate(DATE_FMT_DAYOFWEEK); local Tarih = System.GetDate(DATE_FMT_EUROPE); if Gun == "1" then Gun = "Pazar" end if Gun == "2" then Gun = "Pazartesi" end if Gun == "3" then Gun = "Salı" end if Gun == "4" then Gun = "Çarşamba" end if Gun == "5" then Gun = "Perşembe" end if Gun == "6" then Gun = "Cuma" end if Gun == "7" then Gun = "Cumartesi" end Label.SetText("Label1", Tarih.." - "..Gun); -- sayfaya label eklemeyi unutma Link to comment Share on other sites More sharing options...
Abdullah 37 Posted May 22, 2010 Author Share Posted May 22, 2010 page1 / onpreload local Gun = System.GetDate(DATE_FMT_DAYOFWEEK); local Tarih = System.GetDate(DATE_FMT_EUROPE); if Gun == "1" then Gun = "Pazar" end if Gun == "2" then Gun = "Pazartesi" end if Gun == "3" then Gun = "Salı" end if Gun == "4" then Gun = "Çarşamba" end if Gun == "5" then Gun = "Perşembe" end if Gun == "6" then Gun = "Cuma" end if Gun == "7" then Gun = "Cumartesi" end Label.SetText("Label1", Tarih.." - "..Gun); -- sayfaya label eklemeyi unutma Hocam ben aslında bir saat yaptım input içinde.İstediğim aynı input içinde saatin altında tarihide göstermesi.Ama aynı input içinde olması için nasıl kod yazılacağını ve nasıl saatin altında tarihin gözüktürebileceğimi bilmiyorum. Link to comment Share on other sites More sharing options...
egemynet Posted May 23, 2010 Share Posted May 23, 2010 hangisini istersen kullan... ornek proje AMS 7 için http://rapidshare.com/files/390623058/tarih_gun.apz[/CODE] Link to comment Share on other sites More sharing options...
Abdullah 37 Posted May 23, 2010 Author Share Posted May 23, 2010 hangisini istersen kullan... ornek proje AMS 7 için http://rapidshare.com/files/390623058/tarih_gun.apz[/CODE] hocam örneğin güzel ama ben aşaıdaki resimde mavi yer ile gösterdiğim yeri label değilde bir input içine nasıl yapabilirim. Link to comment Share on other sites More sharing options...
egemynet Posted May 23, 2010 Share Posted May 23, 2010 İnput içerisinde satır atlatılmıyor. Link to comment Share on other sites More sharing options...
KintaRo Posted May 24, 2010 Share Posted May 24, 2010 Aslında bir yol var. Input özelliklerindeki Mutiline seçeneğinden Enabled'i seçin ve Input kodunu şu şekilde değiştirin: Input.SetText("Input1", saat..":"..dakika..":"..saniye.."\r\n" ..Tarih.. "\r\n" ..Gun)[/CODE] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.