Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Different File List
Different File List [message #58538] Fri, 10 June 2022 11:13 Go to next message
Sayem is currently offline  Sayem
Messages: 20
Registered: May 2022
Promising Member
I want to create a file list just like the one shown below

index.php?t=getfile&id=6614&private=0

How can I create that. Is it possible? If it is then how to?
Re: Different File List [message #58539 is a reply to message #58538] Fri, 10 June 2022 13:14 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1077
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Sayem,

Sure it is possible. You should use TreeCtrl. Here is example how to use it with file system. The example is bundled with standard upp distribution and it is located in reference assembly (reference/TreeCtrl).

Klugier


U++ - one framework to rule them all.
Re: Different File List [message #58540 is a reply to message #58539] Fri, 10 June 2022 13:52 Go to previous messageGo to next message
Sayem is currently offline  Sayem
Messages: 20
Registered: May 2022
Promising Member
Thank you very much. It puts up a lot of burden
Re: Different File List [message #58541 is a reply to message #58540] Fri, 10 June 2022 14:08 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1077
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Sayem,

Quote:
Thank you very much. It puts up a lot of burden


Yes that's true. For Linux it is reading /usr directory and for Windows it reads "C://". All these directories have a lot of files. If you want to limit that behaviour just replace following lines with appropriate directory in the example:
	#ifdef PLATFORM_WIN32
		String dir = String(GetExeFilePath()[0], 1) + ":\\";
	#else
		String dir = "/usr";
	#endif


Klugier


U++ - one framework to rule them all.
Re: Different File List [message #58543 is a reply to message #58541] Fri, 10 June 2022 18:22 Go to previous message
Sayem is currently offline  Sayem
Messages: 20
Registered: May 2022
Promising Member
Thank you for that Surprised . Now I can successfully test that on other platform. I'm trying to replace theIDE file list with tree file as it is much better and comfortable for me to see and work with.


index.php?t=getfile&id=6615&private=0

[Updated on: Fri, 10 June 2022 18:24]

Report message to a moderator

Previous Topic: Cannot compile PromptOK(inputBox.GetText())
Next Topic: The right way to use CoDo with GuiLock?
Goto Forum:
  


Current Time: Tue Jun 25 21:42:38 CEST 2024

Total time taken to generate the page: 0.00945 seconds