milsko/examples/basic/scrollbar.c
IoIxD 8c1c9228b7
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
use unix2dos to undo what windows did
2026-07-16 15:44:09 -07:00

20 lines
386 B
C

#include <Mw/Milsko.h>
int main() {
MwWidget window;
int i;
MwLibraryInit();
window = MwVaCreateWidget(MwWindowClass, "main", NULL, MwDEFAULT, MwDEFAULT, 500, 500,
MwNtitle, "main",
NULL);
for(i = 0; i < 500 / 16; i++) {
MwVaCreateWidget(MwScrollBarClass, "scroll", window, 16 * i, 0, 16, 500,
MwNorientation, MwVERTICAL,
NULL);
}
MwLoop(window);
}