⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (1018 Bytes)
Bug #1257
» sapp2.cpp
Boris Nagaev
, 04/26/2012 12:25 AM
#include
<Wt/WApplication>
#include
<Wt/WGridLayout>
#include
<Wt/WImage>
#include
<Wt/WContainerWidget>
using
namespace
Wt
;
class
MyApp
:
public
WApplication
{
public:
MyApp
(
const
WEnvironment
&
env
)
:
WApplication
(
env
)
{
WContainerWidget
*
cw
=
new
WContainerWidget
(
root
());
cw
->
resize
(
512
,
512
);
WGridLayout
*
gl
=
new
WGridLayout
(
cw
);
gl
->
setHorizontalSpacing
(
0
);
gl
->
setVerticalSpacing
(
0
);
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
for
(
int
j
=
0
;
j
<
2
;
j
++
)
{
WContainerWidget
*
cw
=
new
WContainerWidget
();
WImage
*
img
=
new
WImage
(
"http://internet-vip.ru/"
"web-master/fony_sayta/images/"
"zelyonyy_fon_sayta-3.jpg"
,
cw
);
gl
->
addWidget
(
cw
,
i
,
j
);
}
}
}
};
WApplication
*
createApplication
(
const
WEnvironment
&
env
)
{
return
new
MyApp
(
env
);
}
int
main
(
int
argc
,
char
**
argv
)
{
return
WRun
(
argc
,
argv
,
&
createApplication
);
}
« Previous
1
2
3
4
Next »
(1-1/4)
Loading...