mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-02 15:40:50 +00:00
new
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@171 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user