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 » OptionTree inside a DropTree
Re: OptionTree inside a DropTree [message #53536 is a reply to message #53523] Thu, 09 April 2020 10:00 Go to previous messageGo to previous message
omari is currently offline  omari
Messages: 276
Registered: March 2010
Experienced Member
you can start by this :
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	PopUpTable list;
	list.AddColumn("");
	list.SetDropLines(9);
	
	
	for(int i = 0; i < 7; i++){
		list.Add();
		list.CreateCtrl<Option>(i, 0, false).SetLabel("Option " + AsString(i));
	}
	
	Button x;
	x.WhenAction = [&]{list.PopUp(&x);};
	

	TopWindow w;
	w.Add(x.LeftPos(20, 200).TopPos(50, 24));
	w.Run();
}



regards
omari.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Read txt, analyze and convert to csv
Next Topic: SelectFileOpen and VPN
Goto Forum:
  


Current Time: Fri Jun 20 21:44:05 CEST 2025

Total time taken to generate the page: 0.04609 seconds