forked from pyrite-dev/milsko
new
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@171 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
89ff9d8c55
commit
2041b11e23
2 changed files with 19 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ SO = .dll
|
|||
EXEC = .exe
|
||||
endif
|
||||
|
||||
EXAMPLES = examples/example$(EXEC) examples/rotate$(EXEC) examples/image$(EXEC)
|
||||
EXAMPLES = examples/example$(EXEC) examples/rotate$(EXEC) examples/image$(EXEC) examples/scrollbar$(EXEC)
|
||||
|
||||
ifeq ($(OPENGL),1)
|
||||
L_OBJS += src/widget/opengl.o
|
||||
|
|
|
|||
18
examples/scrollbar.c
Normal file
18
examples/scrollbar.c
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* $Id$ */
|
||||
|
||||
#include <Mw/Milsko.h>
|
||||
|
||||
int main(){
|
||||
MwWidget window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 500, 500,
|
||||
MwNtitle, "main",
|
||||
NULL);
|
||||
int i;
|
||||
|
||||
for(i = 0; i < 500 / 16; i++){
|
||||
MwVaCreateWidget(MwScrollBarClass, "scroll", window, 16 * i, 0, 16, 500,
|
||||
MwNorientation, MwVERTICAL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
MwLoop(window);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue