Added layout-friendly constructor.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21363 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-06-09 10:47:05 +00:00
parent d43de0207a
commit a2c9eeee87
2 changed files with 142 additions and 134 deletions

View File

@ -60,6 +60,10 @@ public:
BMessage *message,
uint32 resizingMode,
uint32 flags);
BControl(const char *name,
const char *label,
BMessage *message,
uint32 flags);
virtual ~BControl();
BControl(BMessage *archive);
@ -131,10 +135,3 @@ virtual void _ReservedControl4();
//------------------------------------------------------------------------------
#endif // _CONTROL_H
/*
* $Log $
*
* $Id $
*
*/

View File

@ -54,6 +54,17 @@ BControl::BControl(BRect frame, const char *name, const char *label,
}
BControl::BControl(const char *name, const char *label, BMessage *message,
uint32 flags)
: BView(name, flags)
{
InitData(NULL);
SetLabel(label);
SetMessage(message);
}
BControl::~BControl()
{
free(fLabel);