2018-04-20 20:44:00

hi all, i would like to know, if any one could tell me how to add files to a menu using the dynamic menu in bgt?
I already know how to use the dynamic menu, it is just that i don't quite know how to add files to a menu.
thanks

best regards
never give up on what ever you are doing.

2018-04-20 21:37:08

there is a guide to that in the either foundation or helper layers in bgt.chm. This can be found in the bgt folder. You should see something like "dynamic menu collapsed". expand it, then methods, and you should see examples of that.
lol this probably doesn't make too much sense, but I hope you can find it at least. lol

-
"There is beauty in simplicity."

2018-04-20 22:27:59

you are thinking about items.
there is a difference between the tts item and the normal item that should be added to the menu.
i don't want 1 of those 2 items, i wanted to know how should i add a list of files in a folder to a menu, and i got it working thanks to brian for explaining it to me.
you should use a for loop and add them acoarding to it.
lol this is 1 of those topics where i answer my own questions:d

best regards
never give up on what ever you are doing.

2018-04-25 08:56:25

If you will make program displaying your files,you can check below example.
Sorry for bugged example but i'm not wery good programmer.
I used and slightly modified a browser.bgt and wroted file insluding that and demonstrating working of the script.
Please remember, it can be unstable because i would made a small only testing browser and after see it's can be work i stopped continuing. For example app exiting after select file. If you better of me you can fix it.
Link: http://tdprograms.tk/sc/Files-Explorer- … er.bgt.rar

Mao!
--
TD programs website available under new address.
https://tdprograms.ovh/

2018-04-25 08:59:32

Or if i dont undesrstand your message and you want made menu using voice samples you can try that:
dynamic_menu_pro m;
void mainmenu()
{
m.enable_left_and_right=false;
m.enable_up_and_down=true;
m.click_sound="sounds/menuclick.ogg";
m.enter_sound="sounds/menuenter.ogg";
m.add_music("sounds/mmusic.ogg");
m.add_item("sounds/menu1.ogg", "fn");
m.add_item("sounds/menu2.ogg", "fa");
m.add_item("sounds/menu3.ogg", "ft");
m.add_item("sounds/menu4.ogg", "mf");
m.add_item("sounds/menu5.ogg", "atp");
m.add_item("sounds/menu6.ogg", "exit");
int mres=m.run("sounds/name.ogg", false);
if (m.get_item_name(mres)=="fn")
{
m.fade_music(30);
mainmenu();
}
if (m.get_item_name(mres)=="fa")
{
mainmenu();
}
if (m.get_item_name(mres)=="ft")
{
mainmenu();
}
if (m.get_item_name(mres)=="mf")
{
m.fade_music(30);
mainmenu();
}
if (m.get_item_name(mres)=="atp")
{
m.fade_music(30);
run("C:\\Windows\\explorer.exe", "Info.txt", true, true);
mainmenu();

}
if (m.get_item_name(mres)=="exit" or mres==0)
{
m.fade_music(30);
exit();
}
}

Mao!
--
TD programs website available under new address.
https://tdprograms.ovh/