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:
parent
d43de0207a
commit
a2c9eeee87
@ -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 $
|
||||
*
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user