Jump to content

Işıkları Kapat İçin Kod


PColik
 Share

Recommended Posts

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.
Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...