PColik Posted October 17, 2011 Share Posted October 17, 2011 arkadaşalr sayfamda (Page2) bri arkaplan ve bir resim (Image1) var. bir buton yaptım (Button2) ismi ışıkları kapat ve o butona bastığımda sayfanın arkaplan rengini siyah yapıcak, Image1'i gizlicek, Button2'nin ismi ışıkları aç olucak. ve tekrar bastığımda sayfa orjinal arkaplan resmini alıcak Image1 görünür olucak ve Button2 nin ismi tekrar ışıkları aç olucak. fakat yapamadım. nasıl yapabilirim. EĞER ARKAPLAN RESMİNİN İSMİ LAZIMSA; arkaplan2.jpg şimdiden teşekkürler. Quote Link to comment Share on other sites More sharing options...
Kral__ Posted October 17, 2011 Share Posted October 17, 2011 photoshoptan o resmi siyah beyaz şeklinde yap sonra butondaki kodlarada İmage.Load komutu kullan Quote Link to comment Share on other sites More sharing options...
PColik Posted October 17, 2011 Author Share Posted October 17, 2011 yaw sorun olan o resim değil. zaten onu Image.SetVisible ile gizliyebiliyorum. önemli olan arkaplan değiştirme kodu. arkaplan kırmızı. Quote Link to comment Share on other sites More sharing options...
NotToday Posted October 17, 2011 Share Posted October 17, 2011 1-resmi tam ekran yap Image.Load("1.resim","yüklenecek resmin konumu”) Quote Link to comment Share on other sites More sharing options...
KintaRo Posted October 17, 2011 Share Posted October 17, 2011 Global Functions: [code]nKontrol = 0;[/code] xButton On Click: [codebox]if nKontrol == 0 then Application.SetPageProperties("Page2", {UseCustomSettings=true, BackgroundColor = Math.HexColorToNumber("000000")}) -- sayfanın rengini siyah yap Image.SetVisible("Image1", false) xButton.SetText(this, "Işıkları Aç") nKontrol = 1; else Application.SetPageProperties("Page2", {UseCustomSettings=true, BackgroundColor = Math.HexColorToNumber("F0F0F0")}) -- sayfanın rengini siyah yap Image.SetVisible("Image1", true) xButton.SetText(this, "Işıkları Kapat") nKontrol = 0; end [/codebox] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.