Jump to content

Comboboxtaki Srücüler Paragraph Yansıtabilinirmi?


 Share

Recommended Posts

Arkadaşlar aslında amacım şu;

Program kaç tane sürücü olduğunu bulacak ve Combobox a ekleyecek

Comboboxta seçilen sürücülerin bilgilerini paragraph a aktaracak

Apz dosyası bu maalesef birşeyler denedim ama olmadı

Aslında dosya gerektirecek bir şey yok ama yinede vereyim

http://www.mediafire.com/?br2cd9eawex1x1x
Link to comment
Share on other sites

[b]Page On Show ;[/b]
[codebox]
tDrives = Drive.Enumerate();
for i,v in pairs(tDrives) do
sType = Drive.GetType(v);
if sType == DRIVE_FIXED then
ComboBox.AddItem("ComboBox1", v, "");
end
end
ComboBox.SetSelected("ComboBox1", 1);
[/codebox]

[b]ComboBox On Select ;[/b]
[codebox]
local sDrive = ComboBox.GetItemText("ComboBox1", e_Selection);
sLabel = Drive.GetInformation(sDrive);
Paragraph.SetText("Paragraph1", sLabel.DisplayName);
[/codebox]

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