Home » U++ Library support » TopWindow&PopUp, TrayIcon » Toolbox inside a TopWindow
Toolbox inside a TopWindow [message #13887] |
Thu, 31 January 2008 02:47 |
|
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
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 03:50:05 CEST 2024
Total time taken to generate the page: 0.03867 seconds
|