Jump to content

Progress Ileledikçe Renk Değiştirebilirmi?


 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • Editor

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

[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

Link to comment
Share on other sites

  • Editor

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.

Link to comment
Share on other sites

[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 :)

Link to comment
Share on other sites

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