⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (612 Bytes)
Bug #1699
ยป testborder.cpp
Max Quatember
, 02/14/2013 09:11 AM
namespace
{
class
TestBorder
:
public
Wt
::
WApplication
{
public:
TestBorder
(
const
Wt
::
WEnvironment
&
env
)
:
Wt
::
WApplication
(
env
)
{
auto
c
=
new
Wt
::
WContainerWidget
;
auto
l
=
new
Wt
::
WHBoxLayout
;
l
->
addWidget
(
new
Wt
::
WPushButton
(
"xx"
)
);
l
->
addWidget
(
new
Wt
::
WContainerWidget
,
1
,
Wt
::
AlignLeft
);
c
->
setLayout
(
l
);
c
->
decorationStyle
().
setBorder
(
Wt
::
WBorder
(
Wt
::
WBorder
::
Solid
,
1
,
Wt
::
darkGray
)
);
//<--- not OK
//c->decorationStyle().setBorder( Wt::WBorder( Wt::WBorder::Solid, 2, Wt::darkGray ) ); //<--- OK
root
()
->
addWidget
(
c
);
}
};
}
(1-1/1)
Loading...