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 » U++ Library support » TopWindow&PopUp, TrayIcon » Toolbox inside a TopWindow
icon5.gif  Toolbox inside a TopWindow [message #13887] Thu, 31 January 2008 02:47 Go to previous message
indiocolifa is currently offline  indiocolifa
Messages: 49
Registered: January 2008
Location: Argentina
Member
Hi, i'm getting my first U++ steps and it blows away another cumbersome frameworks! i don't understand why U++ isn't promoted much, it's better than other famous frameworks.

Well what i'm trying to do is to open a TopWindow but inside it I want a toolbox window (that is, this toolbox will be restricted into the top window frame).

This is what I've done (and of course does not work):

/* Main Window Header */
#include "Toolbox.h"
#include <CtrlLib/CtrlLib.h>

using namespace Upp;
//------------------ mainwindow.h -----------------------
class MainWindow : public TopWindow
{
	Toolbox	toolWnd;
		
	public:	
	MainWindow();
};

//------------------ mainwindow.cpp -----------------------
MainWindow::MainWindow()
{
	Sizeable();
	toolWnd.ToolWindow();
	toolWnd.SetRect(0,0,200,200);
	toolWnd.Open(this);
}

//--------------------------- toolbox.h-------------------
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class Toolbox : public TopWindow
{
	
	public:
	
	Toolbox();	
};

// ------------------toolbox.cpp-------------------
#include "Toolbox.h"

Toolbox::Toolbox()
{
	Title("Toolbox");
	
}



Any help? thank you in advance, and keep up the good work !

[Updated on: Thu, 31 January 2008 02:48]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with CursorImage/Popups/Frames on X11
Next Topic: Linux TrayIcon menu improvement
Goto Forum:
  


Current Time: Sat Apr 20 05:48:18 CEST 2024

Total time taken to generate the page: 3.04040 seconds