ListboxEx VS Listbox
Publicado: 20 Jun 2012 16:44
Hi all I'm a new user registered just now, please help me with this code.
Note that this code is created by Rafax Player.
I want it working using a simple Listbox Object instead of ListBoxEx.
I tried with my poor skills without success.
I think my errors are in
instead of
instead of
instead of
These are the codes, Please HELP me!
On Global Functions
On Button (On Click)
On Show (Bookmarks DialogEx)
On DoubleClick (ListBoxEx Plugin1)
Thank you ALL!
Note that this code is created by Rafax Player.
I want it working using a simple Listbox Object instead of ListBoxEx.
I tried with my poor skills without success.
I think my errors are in
ListBox.DeleteItem("Plugin1", -1);
ListBoxEx.DeleteAllItems("Plugin1");
nSel = ListBox.GetItemText("Plugin1", 1);
nSel = ListBoxEx.GetItemText("Plugin1", e_Index, true);
sUrl = ListBox.GetItemData("Plugin1", 1);
sUrl = ListBoxEx.GetItemData("Plugin1", e_Index);
These are the codes, Please HELP me!
On Global Functions
function loadBookmarks()
Total = INIFile.GetValueNames("Bookmarks.dat", "Bookmarks");
if #Total ~= 0 then
ListBoxEx.DeleteAllItems("Plugin1");
for i,v in pairs(Total) do
fav = INIFile.GetValue("Bookmarks.dat", "Bookmarks",v );
result = ListBoxEx.AddItem("Plugin1", v, "", fav, "", 0, LBXITEM_HTML, 0, nil, nil, nil);
end
end
end
On Button (On Click)
ret =DialogEx.Show("Bookmarks", true, nil, nil);
if ret == 1 then
IExplorer.Navigate("Web1", sUrl);
Input.SetText("Input1", sUrl);
end
On Show (Bookmarks DialogEx)
nSel = ListBoxEx.GetItemText("Plugin1", e_Index, true);
if nSel ~= 0 then
sUrl=ListBoxEx.GetItemData("Plugin1", e_Index);
DialogEx.Close(1);
end
On DoubleClick (ListBoxEx Plugin1)
nSel = ListBoxEx.GetItemText("Plugin1", e_Index, true);
if nSel ~= 0 then
sUrl=ListBoxEx.GetItemData("Plugin1", e_Index);
DialogEx.Close(1);
end
Thank you ALL!