Jump to content

Tema Değiştirme & Progress Sorunu


_blackmamba_
 Share

Recommended Posts

OtoKur'da tema değişimi aslinda tamamen sayfa arkaplanın değiştirilmesinden oluşuyor. Şöyleki;

2 adet arkaplan dosyası hazırlayın. ilki tema1.png olsun ikincisi tema2.png olsun. Bunları images klasorune atalım. Sayfa özelliklerinden arkaplanını tema1.png olarak ayarlayalım. Daha sonra Tema1 adli bir buttonumuz olsun ve içine şu kodu yazalim:

[code]Application.SetPageProperties("Page1", {ImageFilename = _SourceFolder .. "\\Autoplay\\Images\\tema1.png"})[/code]

Tema2 buttonunada:

[code]Application.SetPageProperties("Page1", {ImageFilename = _SourceFolder .. "\\Autoplay\\Images\\tema1.png"})[/code]

Progress içinde Page on show evresine sunu yazın:

[code]Progress.SetRange("Progress1", 0, 100)
Progress.SetCurrentPos("Progress1", 37)[/code]

Link to comment
Share on other sites

o zaman bir ini dosyası oluşturursun, Page On Show'da inifile.getvalue ile resim dosyası yolunu alip application.setpageproperties le alınan resim yolunu arkaplan yaptirirsin. Tema butonlarındada application.setpageproperties komutunu kullandıktan sonra o resmide iniye yazdırırsın.

Link to comment
Share on other sites

2 adet arkaplan dosyası hazırlayın. ilki tema1.png olsun ikincisi tema2.png olsun. Bunları images klasorune atalım. Sayfa özelliklerinden arkaplanını tema1.png olarak ayarlayalım. Daha sonra Tema1 adli bir buttonumuz olsun ve içine şu kodu yazalim:

[code]Application.SetPageProperties("Page1", {ImageFilename = "Autoplay\\Images\\tema1.png"}
INIFile.SetValue("Autoplay\\Docs\\ayar.ini", "ayarlar", "tema", "Autoplay\\Images\\tema1.png")[/code]

Tema2 buttonunada:

[code]Application.SetPageProperties("Page1", {ImageFilename = "Autoplay\\Images\\tema2.png"}
INIFile.SetValue("Autoplay\\Docs\\ayar.ini", "ayarlar", "tema", "Autoplay\\Images\\tema2.png")[/code]

Page On Show:

[code]local sTema = INIFile.GetValue("Autoplay\\Docs\\ayar.ini", "ayarlar", "tema")
Application.SetPageProperties("Page1", {ImageFilename = sTema}[/code]

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...