@RTHuR Posted March 6, 2010 Share Posted March 6, 2010 ben resimde gördügünüz üzere on show içersine allatki kodları ekleyerek hdd doluluk simgesi ekledim ama resimdeki hatayı alıyorum bir yardımcı olabilirmisiniz --sets up the progress bar Progress.SetRange("Progress1", 0, 100); Progress.SetCurrentPos("Progress1", (Drive.GetUsedSpace ("C:")/Drive.GetSize("C:")) *100) --next line is additional just remove "--" at the begining of next line --Progress.SetText("Progress1",Math.Round(((Drive.GetFreeSpace("C:")/Drive.GetSize("C:"))*100),1).."% Free"); Label.SetText("Label4", Math.Round(Drive.GetFreeSpace ("C:")*0.001,1).." GB Toplam Alan "..Math.Round(Drive.GetSize ("C:")*0.001,1).." GB"); tDrives = Drive.Enumerate(); local R = 1; nType = Drive.GetType(tDrives[R]); tLabel = Drive.GetInformation(tDrives[R]); sLabel = tLabel.Label; sChar = String.Char(92); sDrive = String.Replace(tDrives[R], sChar, "", true); Label.SetText("Label5", sLabel.." ("..sDrive..")");[/CODE] Link to comment Share on other sites More sharing options...
spydevil Posted March 6, 2010 Share Posted March 6, 2010 tLabel geçersiz değer diyor, tLabel.Label kullanmışsın tLabel tablosu yok veya tLabel tablosunda Label ögesi yok.. Link to comment Share on other sites More sharing options...
@RTHuR Posted March 7, 2010 Author Share Posted March 7, 2010 tLabel geçersiz değer diyor, tLabel.Label kullanmışsın tLabel tablosu yok veya tLabel tablosunda Label ögesi yok.. öncelikle tesekkürler ediyorum yapabilmem için bir kod tarzı bişi ile yardımcı olabilirmisiniz... Link to comment Share on other sites More sharing options...
spydevil Posted March 7, 2010 Share Posted March 7, 2010 local R = 1; nType = Drive.GetType(tDrives[R]); tLabel = Drive.GetInformation(tDrives[R]); sLabel = tLabel.Label; sChar = String.Char(92); sDrive = String.Replace(tDrives[R], sChar, "", true); Label.SetText("Label5", sLabel.." ("..sDrive..")");[/CODE] öncelikle Labelde sLabel değişkeniyle görüntülemek istediğin nedir? ne gibi bişe yapmayı istiyorsun? Link to comment Share on other sites More sharing options...
FİRE BİRD Posted March 7, 2010 Share Posted March 7, 2010 ben resimde gördügünüz üzere on show içersine allatki kodları ekleyerek hdd doluluk simgesi ekledim ama resimdeki hatayı alıyorum bir yardımcı olabilirmisiniz --sets up the progress bar Progress.SetRange("Progress1", 0, 100); Progress.SetCurrentPos("Progress1", (Drive.GetUsedSpace ("C:")/Drive.GetSize("C:")) *100) --next line is additional just remove "--" at the begining of next line --Progress.SetText("Progress1",Math.Round(((Drive.GetFreeSpace("C:")/Drive.GetSize("C:"))*100),1).."% Free"); Label.SetText("Label4", Math.Round(Drive.GetFreeSpace ("C:")*0.001,1).." GB Toplam Alan "..Math.Round(Drive.GetSize ("C:")*0.001,1).." GB"); tDrives = Drive.Enumerate(); local R = 1; nType = Drive.GetType(tDrives[R]); tLabel = Drive.GetInformation(tDrives[R]); sLabel = tLabel.Label; sChar = String.Char(92); sDrive = String.Replace(tDrives[R], sChar, "", true); Label.SetText("Label5", sLabel.." ("..sDrive..")");[/CODE] Bende böyle bir sorunla karşılaştım fakat projenin ilk sayfasında diğer sayfalarda sorun yok..Projeye bir giriş sayfası yaparak hallettim.. Kullandığım kodlar : [CODE]-- Doluluk göstergesi function LeftOverMegs(Gigs,TotalMegs) return Math.Round(TotalMegs - (Gigs*1024), 0); end cSpFree = Drive.GetFreeSpace("C:"); cspace = Drive.GetSize("C:"); GBspace =cspace/1024 GBFree = cSpFree/1024 TotalGigs = Math.Round(GBspace, 0); FreeGigs = Math.Round(GBFree, 0); TotalMegs = LeftOverMegs(TotalGigs,cspace) FreeMegs = LeftOverMegs(FreeGigs,cSpFree) Label.SetText("cSpace",""..TotalGigs.."GB Toplam Alanda "..FreeGigs.."GB Bos"); dolu=(cspace/1024) - (cSpFree/1024) tam=cspace/1024 Progress.SetCurrentPos("Progress1", Math.Ceil((dolu/tam)*100)); -- Doluluk göstergesi[/CODE] Link to comment Share on other sites More sharing options...
@RTHuR Posted March 7, 2010 Author Share Posted March 7, 2010 local R = 1; nType = Drive.GetType(tDrives[R]); tLabel = Drive.GetInformation(tDrives[R]); sLabel = tLabel.Label; sChar = String.Char(92); sDrive = String.Replace(tDrives[R], sChar, "", true); Label.SetText("Label5", sLabel.." ("..sDrive..")");[/CODE] öncelikle Labelde sLabel değişkeniyle görüntülemek istediğin nedir? ne gibi bişe yapmayı istiyorsun? ya aslında tLabel sorunum benim en altta resimde görmüs oldugun secilenleri kur butonu altına eklemiş olduğum hdd info yani harddiskinin nekadar dolu oldugunu gösteren bölüm (hdd info) ve (hdd info) bölümünü olusturmak içinde tLabekl kodlarını On Sgow katagörisine ekleme yapmak lazım ben kodları ekledim hdd dolulugu gösteriyor ama projeyi calıstırıp actığımda o resimdeki hatayı alıyorum. resimdede görmüs olduğunuz üzere hataya tamam diyorum ama 1 saniye sonra yine geliyor ve resimde global ile ilgili tlabek kodlarını global funcitions yani index bölümüne mi eklicez bilemiyorum ama hatayı birtürlü düzeltemedim bir yardım ederseniz sevinirim [CODE]--sets up the progress bar Progress.SetRange("Progress1", 0, 100); Progress.SetCurrentPos("Progress1", (Drive.GetUsedSpace ("C:")/Drive.GetSize("C:")) *100) --next line is additional just remove "--" at the begining of next line --Progress.SetText("Progress1",Math.Round(((Drive.GetFreeSpace("C:")/Drive.GetSize("C:"))*100),1).."% Free"); Label.SetText("Label4", Math.Round(Drive.GetFreeSpace ("C:")*0.001,1).." GB Toplam Alan "..Math.Round(Drive.GetSize ("C:")*0.001,1).." GB"); tDrives = Drive.Enumerate(); local R = 1; nType = Drive.GetType(tDrives[R]); tLabel = Drive.GetInformation(tDrives[R]); sLabel = tLabel.Label; sChar = String.Char(92); sDrive = String.Replace(tDrives[R], sChar, "", true); Label.SetText("Label5", sLabel.." ("..sDrive..")");[/CODE] Bende böyle bir sorunla karşılaştım fakat projenin ilk sayfasında diğer sayfalarda sorun yok..Projeye bir giriş sayfası yaparak hallettim.. Kullandığım kodlar : [CODE]-- Doluluk göstergesi function LeftOverMegs(Gigs,TotalMegs) return Math.Round(TotalMegs - (Gigs*1024), 0); end cSpFree = Drive.GetFreeSpace("C:"); cspace = Drive.GetSize("C:"); GBspace =cspace/1024 GBFree = cSpFree/1024 TotalGigs = Math.Round(GBspace, 0); FreeGigs = Math.Round(GBFree, 0); TotalMegs = LeftOverMegs(TotalGigs,cspace) FreeMegs = LeftOverMegs(FreeGigs,cSpFree) Label.SetText("cSpace",""..TotalGigs.."GB Toplam Alanda "..FreeGigs.."GB Bos"); dolu=(cspace/1024) - (cSpFree/1024) tam=cspace/1024 Progress.SetCurrentPos("Progress1", Math.Ceil((dolu/tam)*100)); -- Doluluk göstergesi[/CODE] bana vermiş oldugun kodları global amı yoksa progenin içinemi eklemem lazım birde senin verdigin kodları deniyim tamam arkadasın verdigi kod ile denedim hata mata vermedi sagolasın arkadeim eline koluna saglık ben bişi daha sormak istiyorum chackbox a tıklayıp secilenleri kur butonuna tıkladıgımda kurulum bitene kadar programlarınıuz kuruluyor penceresi kapanmasın istiyorum programın yüklenemesi bitemedne diyerine geciyor bunu nasul düzeltirim... Link to comment Share on other sites More sharing options...
FİRE BİRD Posted March 9, 2010 Share Posted March 9, 2010 bana vermiş oldugun kodları global amı yoksa progenin içinemi eklemem lazım birde senin verdigin kodları deniyim tamam arkadasın verdigi kod ile denedim hata mata vermedi sagolasın arkadeim eline koluna saglık ben bişi daha sormak istiyorum chackbox a tıklayıp secilenleri kur butonuna tıkladıgımda kurulum bitene kadar programlarınıuz kuruluyor penceresi kapanmasın istiyorum programın yüklenemesi bitemedne diyerine geciyor bunu nasul düzeltirim... Programlarınız kuruluyor penceresini ne ile yaptın nasıl bir şey bilgi verirsen yardımcı olabilirim. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.