--TUTORIALES:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if (e_Index == 1) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 2, true);
ListBoxEx.SetItemVisible("Plugin1", 3, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 2, false);
ListBoxEx.SetItemVisible("Plugin1", 3, false);
ListBoxEx.Redraw("Plugin1");
end
--CARPETAS:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 4) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 5, true);
ListBoxEx.SetItemVisible("Plugin1", 6, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 5, false);
ListBoxEx.SetItemVisible("Plugin1", 6, false);
ListBoxEx.Redraw("Plugin1");
end
--EJECUTABLES:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 7) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 8, true);
ListBoxEx.SetItemVisible("Plugin1", 9, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 8, false);
ListBoxEx.SetItemVisible("Plugin1", 9, false);
ListBoxEx.Redraw("Plugin1");
end
--VIDEOS:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 10) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 11, true);
ListBoxEx.SetItemVisible("Plugin1", 12, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 11, false);
ListBoxEx.SetItemVisible("Plugin1", 12, false);
ListBoxEx.Redraw("Plugin1");
end
--:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
else
strTxt = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strTxt, "AutoPlayDocsTUTORIALES");
strlnk = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strlnk, "AutoPlayDocsCARPETAS");
strExe = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strExe, "AutoPlayDocsEJECUTABLES");
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlayDocsVIDEOS");
end
strTxt = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strTxt, "AutoPlay\\Docs\\TUTORIALES\\");
strlnk = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strlnk, "AutoPlay\\Docs\\CARPETAS\\");
strExe = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strExe, "AutoPlay\\Docs\\EJECUTABLES\\");
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlay\\Docs\\VIDEOS\\");
ListBoxEx.DeleteAllItems("ListBoxEx1");
tSelected = ListBoxEx.GetSelectedItem("ListBoxEx1")
if tSelected then
Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\Click1.ogg", true, false)
end
Muchas gracias amigo por la ayuda.Agotaras123 escribió:strTxt = ListBoxEx.GetItemData("Plugin1", e_Index); File.Open(strTxt, "AutoPlayDocsTUTORIALES"); strlnk = ListBoxEx.GetItemData("Plugin1", e_Index); File.Open(strlnk, "AutoPlayDocsCARPETAS"); strExe = ListBoxEx.GetItemData("Plugin1", e_Index); File.Open(strExe, "AutoPlayDocsEJECUTABLES"); strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index); Video.Load(strMp4, "AutoPlayDocsVIDEOS");
para que cuando accedas de una pagina a otra y retornes debes de colocar esto en on show
ListBoxEx.DeleteAllItems("ListBoxEx1");
para reproducir sonidos en tu ListBox no te entendí muy bien, lo que logre captar es que cuando toques un Item te reproduzca algún tipo de sonido si es eso entonces debes de colocar esto en el evento On Select de tu ListBoxEx
tSelected = ListBoxEx.GetSelectedItem("ListBoxEx1") if tSelected then Audio.Load(CHANNEL_BACKGROUND, "AutoPlayAudioClick1.ogg", true, false) end
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlayDocsVIDEOS");
ListBoxEx.DeleteAllItems("ListBoxEx1");
ListBoxEx.SetUpdate("Plugin1", false);
--TUTORIALES::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>TUTORIALES<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "TUTORIAL 1", "", "TUTORIAL 1.txt", "TUTORIALES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "TUTORIAL 2", "", "TUTORIAL 2.txt", "TUTORIALES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--CARPETAS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>CARPETAS<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "GALERIA", "", "GALERIA - Acceso directo.lnk", "CARPETAS", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "IMAGENES", "", "IMAGENES - Acceso directo.lnk", "CARPETAS", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--EJECUTABLES::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>EJECUTABLES<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "EJECUTABLE 1", "", "EJECUTABLE 1.exe", "EJECUTABLES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "EJECUTABLE 2", "", "EJECUTABLE 2.exe", "EJECUTABLES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--VIDEOS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>VIDEOS<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "VIDEO1", "", "VIDEO1.mp4", "VIDEOS", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "VIDEO2", "", "VIDEO2.mp4", "VIDEOS", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ListBoxEx.SetUpdate("Plugin1", true);
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlay\\Docs\\VIDEOS");
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlayDocsVIDEOS");
ListBoxEx.DeleteAllItems("ListBoxEx1");
Gracias amigo ya consegui lo de duplicar los Item el problema era que puse lo que me dijistesAgotaras123 escribió:esto no se si no te fijaste o que pero te deje el código de esta manera
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index); Video.Load(strMp4, "AutoPlay\Docs\VIDEOS");
tu lo tienes de esta manera
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index); Video.Load(strMp4, "AutoPlayDocsVIDEOS");
Este codigo lo debes de colocar donde tengas el codigo que te carla las listbox yo asumi que era en on show pero por lo que me dices no lo es.
ListBoxEx.DeleteAllItems("ListBoxEx1");
--Pagina ON Show
--NO DUPLIQUEN LOS ITEM::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ListBoxEx.DeleteAllItems("Plugin1");
-------------------------------------------------------------------------------------------------------------------------------------------
ListBoxEx.SetUpdate("Plugin1", false);
--TUTORIALES::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>TUTORIALES<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "TUTORIAL 1", "", "TUTORIAL 1.txt", "TUTORIALES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "TUTORIAL 2", "", "TUTORIAL 2.txt", "TUTORIALES", 3, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--CARPETAS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>CARPETAS<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "GALERIA", "", "GALERIA - Acceso directo.lnk", "CARPETAS", 4, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "IMAGENES", "", "IMAGENES - Acceso directo.lnk", "CARPETAS", 4, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--EJECUTABLES::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>EJECUTABLES<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "EJECUTABLE 1", "", "EJECUTABLE 1.exe", "EJECUTABLES", 5, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "EJECUTABLE 2", "", "EJECUTABLE 2.exe", "EJECUTABLES", 5, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--VIDEOS::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
nIndex = ListBoxEx.AddItem("Plugin1", "<b>VIDEOS<b>", "", "", "", 1, LBXITEM_HTML, 0, {50732,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "close");
nIndex = ListBoxEx.AddItem("Plugin1", "VIDEO1", "", "VIDEO1.mp4", "VIDEOS", 6, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
nIndex = ListBoxEx.AddItem("Plugin1", "VIDEO2", "", "VIDEO2.mp4", "VIDEOS", 6, 1, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, HORIZONTAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, false);
--::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ListBoxEx.SetUpdate("Plugin1", true);
--ListBoxEx On Select
--SONIDO PULSAR LISTBOXEX:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
tSelected = ListBoxEx.GetSelectedItem("ListBoxEx1")
if tSelected then
Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\Click1.ogg", true, false)
end
--TUTORIALES:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
if (e_Index == 1) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 2, true);
ListBoxEx.SetItemVisible("Plugin1", 3, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 2, false);
ListBoxEx.SetItemVisible("Plugin1", 3, false);
ListBoxEx.Redraw("Plugin1");
end
--CARPETAS:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 4) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 5, true);
ListBoxEx.SetItemVisible("Plugin1", 6, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 5, false);
ListBoxEx.SetItemVisible("Plugin1", 6, false);
ListBoxEx.Redraw("Plugin1");
end
--EJECUTABLES:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 7) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 8, true);
ListBoxEx.SetItemVisible("Plugin1", 9, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 8, false);
ListBoxEx.SetItemVisible("Plugin1", 9, false);
ListBoxEx.Redraw("Plugin1");
end
--VIDEOS:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
elseif (e_Index == 10) then
if (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "close") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "open");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 2);
ListBoxEx.SetItemVisible("Plugin1", 11, true);
ListBoxEx.SetItemVisible("Plugin1", 12, true);
ListBoxEx.Redraw("Plugin1");
elseif (ListBoxEx.GetItemDataEx("Plugin1", e_Index) == "open") then
ListBoxEx.SetItemDataEx("Plugin1", e_Index, "close");
ListBoxEx.SetItemIcon("Plugin1", e_Index, 1);
ListBoxEx.SetItemVisible("Plugin1", 11, false);
ListBoxEx.SetItemVisible("Plugin1", 12, false);
ListBoxEx.Redraw("Plugin1");
end
--:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
else
strTxt = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strTxt, "AutoPlay\\Docs\\TUTORIALES\\");
strlnk = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strlnk, "AutoPlay\\Docs\\CARPETAS\\");
strExe = ListBoxEx.GetItemData("Plugin1", e_Index);
File.Open(strExe, "AutoPlay\\Docs\\EJECUTABLES\\");
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlay\\Docs\\VIDEOS\\");
end
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlay\\Docs\\VIDEOS\\"..strMp4 );
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index);
Video.Load(strMp4, "AutoPlay\\Docs\\VIDEOS\\");
que no vaAgotaras123 escribió:en la ruta que hace la apertura no esta la variable que contiene el nombre del archivo a ejecutar
debe de quedar de esta manera
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index); Video.Load(strMp4, "AutoPlay\Docs\VIDEOS\"..strMp4 );
y vos lo tenes de esta otra
strMp4 = ListBoxEx.GetItemData("Plugin1", e_Index); Video.Load(strMp4, "AutoPlay\Docs\VIDEOS\");
genial amigo muchas gracias, funcionado con sus colores y icon y todo prefecto mejor que mi proyecto se añeden los videos solos al listboxex copiandolos en la carpeta videos y ordenados.zidangol escribió:ok, gracias amigo ya te comento luegoAgotaras123 escribió:dejo un apz de como funciona mejor y revisalo y lo adaptas:
------------------------
--PAGE ON SHOW
------------------------
ListBoxEx.DeleteAllItems("Plugin2")
bFound = Folder.DoesExist("AutoPlay\\Docs\\");
if bFound == true then
tFiles = File.Find("AutoPlay\\Docs\\", "*.*", false, false, nil, nil);
if tFiles then
for i,sFilePath in pairs(tFiles) do
tFileParts = String.SplitPath(sFilePath);
sFileName = tFileParts.Filename;
sFileExtension = tFileParts.Extension;
sFullFileName = sFileName..sFileExtension;
idIcon = ListBoxEx.AddAssocIcon("Plugin2", LBXASSOC_SMALLICON, sFilePath);
--Personalizar Item---------------------------------------------------------------------------------------------------------------------------
ListBoxEx.AddItem("Plugin2", sFullFileName, "", sFilePath, "", 1, LBXITEM_HTML, 0, {14256128,16646120}, {2035455,16646120}, {52978,16646120});
end
end
end
---------------------------------
--LISTBOXEX ON SELECT
---------------------------------
--SONIDO PULSAR LISTBOXEX--------------------------------------------------------------------
tSelected = ListBoxEx.GetSelectedItem("ListBoxEx1")
if tSelected then
Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\Click1.ogg", true, false)
end
----------------------------------------------------------------------------------------------
ListBoxEx.SetItemText("Plugin2", current,String.Replace(ListBoxEx.GetItemText("Plugin2", current, false),"<font color=#FF8040 face='verdana' size=3> - Codigo...</font>",""));
current = ListBoxEx.GetSelectedItem("Plugin2");
if current ~= 0 then
ListBoxEx.SetItemText("Plugin2", current,ListBoxEx.GetItemText("Plugin2", current, false).." ".."<font color=#FF8040 face='verdana' size=3> - Codigo...</font>");
RichText.LoadFromFile("RichText1", ListBoxEx.GetItemData("Plugin2", current));
RichText.Copy("RichText1");
end
----------------------------------------------------
--RICH TEXT ON SELECTION CHANGED
----------------------------------------------------
ListBoxEx.SetItemText("Plugin2", current,String.Replace(ListBoxEx.GetItemText("Plugin2", current, false),"<font color=#FF8040 face='verdana' size=3> - Codigo...</font>",""));
current = current + 1;
RichText.LoadFromFile("RichText1",ListBoxEx.GetItemData("Plugin2", current));
ListBoxEx.SelectItem("Plugin2", current, true);
ListBoxEx.SetItemText("Plugin2", current,ListBoxEx.GetItemText("Plugin2", current, false).."<font color=#FF8040 face='verdana' size=3> - Codigo...</font>");
RichText.LoadFromFile("RichText1");
if current >= ListBoxEx.GetTotalItems("Plugin2") then
current = 0;
end
Buenas amigo me podrias decir en el proyeto del reproductor como puedo cambiar las font, el tamaño de las font, y el color es que tengo el proyecto casi terminado y me queda eso, es que me salen en agun listboxEx las letras mas pequeñas, bueno gracias espero una respuesta por favor.Agotaras123 escribió:dejo un apz de como funciona mejor y revisalo y lo adaptas: