From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-07-2016 04:38 AM
Hi all,
I would like my custom run-time menu to contain a history of data files that have recently been opened.
Can you modify the run-time menu at run-time?
Or can someone point me to an existing solution?
Many thanks,
Phill
Solved! Go to Solution.
09-07-2016 04:42 AM
09-07-2016 04:43 AM
I hope its not available by default. but can be done by custom code which will save the recently opened files in a history file. the same file can be used to retrive the history of data when needed.
If its available by default i am happy to hear from other users.
09-07-2016 04:49 AM
Thanks for the reply, but I don't want to load a complete new menu.
I just want to change the items in it.
For example after opening several data files the menu should look something like:
File
Open..
Recent >
File 1
File 2
File 3
Exit
As I reach a limit of say 5 recent files the oldest is removed:
File
Open...
Recent >
File 2
File 3
File 4
File 5
File 6
Selecting a historic file will save me from browsing to file path again when I want to releoad it.
Phill
09-07-2016 05:02 AM - edited 09-07-2016 05:04 AM
Refer the examples regarding Menu
Navigate to Help --> Find Examples---> in the search type Menu and select Customozing the menu bar
The above example is for removing the menu item, like the same you can use for adding the Menu and deleting when exceeds after five items as mnetioned by you.
09-07-2016 05:26 AM
Excellent - thank you!