Jump to content

Treelistte Seçilen Dosya Boyutunu Labele Yazdırmak


nightmare3519
 Share

Recommended Posts

[img]http://i.imgur.com/hVrxI.png[/img]

Resim herşeyi anlatıyordur..

Diğer konumu raporladım gereksiz konu açmayın diye..

Lütfen arkadaşlar tek bu kaldı AIO bitmesi için sonrası program...


Tamamdır Sorun Çözüldü... Edited by nightmare3519
Link to comment
Share on other sites

  • Replies 56
  • Created
  • Last Reply

Top Posters In This Topic

[color="#000000"][b]Örnek:[/b][/color]

On Check'e Say () yaz.Bunları da Glabal'e yaz.

[codebox]function Say ()
nBoyut=0
nListe = TreeList.CountRows("Plugin1", false)
for i=0,nListe-1 do
if TreeList.GetRowChecked("Plugin1", i) == true then
sProgram = TreeList.GetCellText("Plugin1", i, 1)
sBoyut = File.GetSize(_SourceFolder.."\\Programlar\\"..sProgram ..".exe")
nBoyut=nBoyut+sBoyut
Label.SetText("Label1", String.GetFormattedSize(nBoyut), FMTSIZE_AUTOMATIC, true);
end
end
end[/codebox]

Edited by ReaLyMaN
Link to comment
Share on other sites

[quote name='34ero' date='22 March 2012 - 16:30 ' timestamp='1332426643' post='1173558']
bu çalışmada sürümde gözüküyor fakat sürüm numarası yazmayan katılımsız olduğunda hata veriyordu eğer bu düzelmedi ise sürümsüz olması daha iyi olur
[/quote]


Sürüm göstermede sorun yok...

[quote name='ReaLyMaN' date='22 March 2012 - 16:34 ' timestamp='1332426848' post='1173562']nightmare3519 verdiğim kodu uygulayamamış.Sorun çözüldü :)[/quote]

Çok sağol abim benim :)

Çalışmalar çok iyi gidiyor sadece programlar kaldı onuda yardım edersiniz artık :D

Edited by nightmare3519
Link to comment
Share on other sites

[quote name='34ero' date='22 March 2012 - 17:03 ' timestamp='1332428594' post='1173579']
programsız ilk paylaşırsan daha iyi olur daha sonra programlıda yayınlarsın kolay gelsin
[/quote]

Kusura bakma proje apzsini paylaşamam fakatk örnek yapıp yayınlayabilirim

Link to comment
Share on other sites

[quote name='korasoglu' date='22 March 2012 - 22:15 ' timestamp='1332447300' post='1173708']
Sevgili Realyman sana mesaj niye gönderemiyorum öm ile gönderirsen sevinirim...
[/quote]
nightmare3519 projeyi bahsediyorsan sizde takdir edersiniz ki yayınlamak istemediğinden özelden gönderdi

Link to comment
Share on other sites

[quote name='ReaLyMaN' date='21 March 2012 - 23:02 ' timestamp='1332363727' post='1173242']
[color="#000000"][b]Örnek:[/b][/color]

On Check'e Say () yaz.Bunları da Glabal'e yaz.

[codebox]function Say ()
nBoyut=0
nListe = TreeList.CountRows("Plugin1", false)
for i=0,nListe-1 do
if TreeList.GetRowChecked("Plugin1", i) == true then
sProgram = TreeList.GetCellText("Plugin1", i, 1)
sBoyut = File.GetSize(_SourceFolder.."\\Programlar\\"..sProgram ..".exe")
nBoyut=nBoyut+sBoyut
Label.SetText("Label1", String.GetFormattedSize(nBoyut), FMTSIZE_AUTOMATIC, true);
end
end
end[/codebox]
[/quote]
peki bunu listicona nasıl uyarlarız ? yapamadımda

Link to comment
Share on other sites

Nasıl bulamadınız ya? TreeList kadar basit aslında gözünüzden kaçmış olmalı.

Global Functions'a;

[quote]nToplam = 0;[/quote]

koyun. Daha sonra yine Global Functions'taki

[quote]function ListIconEvent.OnChecked(ObjectName, Row, boolChecked)[/quote]

fonksiyonunu şu şekilde düzenleyin:

[quote]function ListIconEvent.OnChecked(ObjectName, Row, boolChecked)
if(boolChecked)then
nToplam = nToplam+1
Label.SetText("Label1", nToplam .. " program seçildi")
else
nToplam = nToplam-1
Label.SetText("Label1", nToplam .. " program seçildi")
end
end[/quote]

[quote name='nightmare3519' date='28 March 2012 - 20:56 ' timestamp='1332957411' post='1176806']
Kardeşim emin ol TreeList daha iyi listicondan :)
[/quote]

Aynen öyle, TreeList kadar stabil bir plugin görmedim.

Link to comment
Share on other sites

[quote name='KintaRo' date='28 March 2012 - 20:59 ' timestamp='1332961196' post='1176847']
yav tamam ne farkeden aynı kodları alıp verdiğim kodlar arasında kullanacaksınız, o kadarını da yaparsınız artık. yaparsınız değil mi?
[/quote]

Tamam abi kızma :D Kral__ duydun zilin sesini :D

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