_blackmamba_ Posted March 6, 2011 Share Posted March 6, 2011 (edited) Otokur da olduğu gibi temamızı nasıl değiştirebiliriz? Bide mesela bir progress çubuğumuz var. AMS projemiz başlayınca %37 olmasını istiyoruz... Edited March 6, 2011 by _blackmamba_ Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 10, 2011 Share Posted March 10, 2011 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] Quote Link to comment Share on other sites More sharing options...
Sistemci Posted March 16, 2011 Share Posted March 16, 2011 peki abi programı tekrar açınca seçtiğimiz tema kayboluyor bunun kalıcı olmasını nasıl yapacaz Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 16, 2011 Share Posted March 16, 2011 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. Quote Link to comment Share on other sites More sharing options...
Sistemci Posted March 16, 2011 Share Posted March 16, 2011 örnek verebilir misin abi bir tane Quote Link to comment Share on other sites More sharing options...
KintaRo Posted March 16, 2011 Share Posted March 16, 2011 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] 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.