nightmare3519 Posted May 21, 2012 Share Posted May 21, 2012 (edited) Arkadaşlar Progressbar 75e kadar yeşil 75i geçince sarı 90ı geçince kırmızı olabilirmi progressin renk değiştirme kodu varmıdır? Edited May 21, 2012 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
woramon Posted May 21, 2012 Share Posted May 21, 2012 Anladığım kadarıyla cpu ölçer gibi bir şey yapacaksın, eğer böle bir şey yapacaksan ( bende yeniyim ama) eğer progressla olmadıysa resimlerle halledilebilir. Ama uzun ve zahmetli bir iş (Alt üstü 100 tane resim yapman gerekli tabi daha az da olabilir). Sadece bi öneriydi dediğim gibi ams de yeniyim. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 21, 2012 Editor Share Posted May 21, 2012 (edited) Evet vardır [code] if x < 75 then Progress.SetProperties("Progress4", {BarColor = Math.HexColorToNumber("99CC00")}); elseif x > 75 and x < 90 then Progress.SetProperties("Progress4", {BarColor = Math.HexColorToNumber("FFFF00")}); elseif x > 90 then Progress.SetProperties("Progress4", {BarColor = Math.HexColorToNumber("FF0000")}); end [/code] bu örnek işini görecektir.Color değerleri yanlış olabilir html renk kodlarına bakıp netten koyabilirsin. Edited May 21, 2012 by pairs Quote Link to comment Share on other sites More sharing options...
woramon Posted May 21, 2012 Share Posted May 21, 2012 pairs çok saol kardeşim çok işime yarıyacak bu kod. Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted May 21, 2012 Author Share Posted May 21, 2012 [quote name='pairs' date='21 May 2012 - 22:35 ' timestamp='1337628943' post='1203552'] Evet vardır [code] if x < 75 then Progress.SetProperties("Progress4", {BarColor = Math.HexColorToNumber("99CC00")}); elseif x > 75 and x < 90 then Progress.SetProperties("Progress4", {BarColor = Math.HexColorToNumber("FFFF00")}); elseif x > 90 then Progress.SetProperties("Progress4", {BarColor = Math.HexColorToNumber("FF0000")}); end [/code] bu örnek işini görecektir.Color değerleri yanlış olabilir html renk kodlarına bakıp netten koyabilirsin. [/quote] Abi yanıtın için teşekkürler comboboxta harddiski seçiyorum fakat pozisyonu nerede olursa olsun hep kırmızı oluyor değişen bir şey yok renk kodları baktım Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 21, 2012 Editor Share Posted May 21, 2012 Değişkeni düzelttinmi comboboxdaki deger text olarakda dönebiliyor olabilir ben integir a ayarladım. Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted May 21, 2012 Share Posted May 21, 2012 [b]Proje ver bakayım.[/b] Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted May 21, 2012 Author Share Posted May 21, 2012 (edited) http://www.mediafire.com/?ucfingcog9eaojs umarım yapabilirsin abi Edited May 21, 2012 by nightmare3519 Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 21, 2012 Editor Share Posted May 21, 2012 Projen tamam ama çok hatası var onları gidermek lazım yarın bakalım olurmu ben sana şimdi progress i düzeltilmiş haliyle atacagım. Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted May 21, 2012 Author Share Posted May 21, 2012 [quote name='pairs' date='21 May 2012 - 23:47 ' timestamp='1337633270' post='1203591'] Projen tamam ama çok hatası var onları gidermek lazım yarın bakalım olurmu ben sana şimdi progress i düzeltilmiş haliyle atacagım. [/quote] Hepsini düzelticem abi sırayla hepsi Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted May 21, 2012 Share Posted May 21, 2012 (edited) Kodlar : [spoiler] [codebox] local sDrive = ComboBox.GetItemText("ComboBox1", e_Selection); sLabel = Drive.GetInformation(sDrive); Progress.SetRange("Progress1", 0, 100); Pozisyon = (Drive.GetUsedSpace (sDrive)/Drive.GetSize(sDrive)) *100 Progress.SetCurrentPos("Progress1", Pozisyon) if Pozisyon > 70 then Progress.SetProperties("Progress1", {BarColor = Math.HexColorToNumber("800000")}); end Paragraph.SetText("Paragraph1","Sürücü İsmi : "..sLabel.DisplayName.."\r Dosya Sistemi : "..sLabel.FileSystem.."\rSerial Numarası : "..sLabel.SerialNumber.."\rToplam :"..Math.Round(Drive.GetSize(sDrive)*0.001,1).."GB Toplam".."\rBoş :"..Math.Round(Drive.GetFreeSpace(sDrive)*0.001,1).."GB Boş"); [/codebox] [/spoiler] [b]Combobox kodlarına bunları yaz. Denedim çalışıyor. pairs doğru kodu vermiş ama projende standart windows progress'i kullanmışsın. Ona yazı yazılamaz ve renk düzeni değiştirilemez. Use custom colors seçeneğini işaretlemen gerek.[/b] Edited May 21, 2012 by Baba_ Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted May 21, 2012 Editor Share Posted May 21, 2012 http://www.mediafire.com/download.php?nnndq4d9js9aljo Quote Link to comment Share on other sites More sharing options...
nightmare3519 Posted May 21, 2012 Author Share Posted May 21, 2012 (edited) Edit: Sorun kalmadı cevap "pairs" in linkindedir. Edited May 21, 2012 by nightmare3519 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.