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 » How do i create tabs without using .lay??
icon9.gif  How do i create tabs without using .lay?? [message #33519] Thu, 18 August 2011 20:53 Go to next message
IIIIIIII is currently offline  IIIIIIII
Messages: 5
Registered: August 2011
Promising Member
I want to create tabs in a window using only codes and not the GUI painter. Please help. Embarassed

[Updated on: Thu, 18 August 2011 21:38]

Report message to a moderator

Re: How do i create tabs without using .lay?? [message #33520 is a reply to message #33519] Thu, 18 August 2011 22:48 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
IIIIIIII wrote on Thu, 18 August 2011 20:53

I want to create tabs in a window using only codes and not the GUI painter. Please help. Embarassed


Hello,

your question remind me when I asked similar things some years ago. I believed was easier and better to not use the lay designer. I was mistanking. I strongly encourage you to use it!
In the tab pages you will need to put sone control (widget) and without the lay file it is a terrible pain.

I am sorry if I have not answered as you wanted.
Luigi
Re: How do i create tabs without using .lay?? [message #33521 is a reply to message #33520] Thu, 18 August 2011 22:54 Go to previous messageGo to next message
IIIIIIII is currently offline  IIIIIIII
Messages: 5
Registered: August 2011
Promising Member
Thank you for the response. I would like to use the lay designer as well but unfortunately the project I am working requires me to only use codes.
Re: How do i create tabs without using .lay?? [message #33522 is a reply to message #33521] Fri, 19 August 2011 04:03 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
class app : public TopWindow {
public:
	app();

private:
	TabBarCtrl			tabs;
	GridCtrl			grid_all;
	GridCtrl			grid_by_file;
	GridCtrl			grid_by_module;
};

app::app()
{
	// Set up grids here ...

	// Add tabs.
	tabs.AddCtrl(grid_all, "All");
	tabs.AddCtrl(grid_by_module, "By Module");
	tabs.AddCtrl(grid_by_file, "By File");
	tabs.SetCursor(0);
	tabs.Crosses(false);
	Add(tabs.SizePos());
}


Regards,
Novo
Re: How do i create tabs without using .lay?? [message #33524 is a reply to message #33522] Fri, 19 August 2011 15:46 Go to previous message
IIIIIIII is currently offline  IIIIIIII
Messages: 5
Registered: August 2011
Promising Member
Thank you Nova!! It worked!! Although some of the names are incorrect, like TabBarCtrl should be TabCtrl and .SetCursor and .Crosses are not properties of TabCtrl. After clearing that it works perfectly. Thanks Nova!
Previous Topic: 2 questions on ArrayCtrl and tray
Next Topic: Checkboxes
Goto Forum:
  


Current Time: Sat May 04 16:47:22 CEST 2024

Total time taken to generate the page: 0.02333 seconds