aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gwin
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/gwin')
-rw-r--r--demos/modules/gwin/slider/gfxconf.h5
-rw-r--r--demos/modules/gwin/slider/main.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/demos/modules/gwin/slider/gfxconf.h b/demos/modules/gwin/slider/gfxconf.h
index cb9fc1db..9d55d29f 100644
--- a/demos/modules/gwin/slider/gfxconf.h
+++ b/demos/modules/gwin/slider/gfxconf.h
@@ -42,12 +42,14 @@
#define GFX_USE_GINPUT TRUE
#define GFX_USE_GEVENT TRUE
#define GFX_USE_GTIMER TRUE
+#define GFX_USE_GQUEUE TRUE
/* Features for the GDISP sub-system. */
#define GDISP_NEED_VALIDATION TRUE
#define GDISP_NEED_CLIP TRUE
#define GDISP_NEED_CIRCLE TRUE
#define GDISP_NEED_TEXT TRUE
+#define GDISP_NEED_MULTITHREAD TRUE
/* GDISP fonts to include */
#define GDISP_INCLUDE_FONT_UI2 TRUE
@@ -61,5 +63,8 @@
/* Features for the GINPUT subsystem. */
#define GINPUT_NEED_MOUSE TRUE
+/* Features for the GQUEUE subsystem. */
+#define GQUEUE_NEED_ASYNC TRUE
+
#endif /* _GFXCONF_H */
diff --git a/demos/modules/gwin/slider/main.c b/demos/modules/gwin/slider/main.c
index 781447b6..66cd7a1b 100644
--- a/demos/modules/gwin/slider/main.c
+++ b/demos/modules/gwin/slider/main.c
@@ -50,6 +50,11 @@ static void createWidgets(void) {
// Set slider 2 to return extended events
gwinSliderSendExtendedEvents(ghSlider2, TRUE);
+ // Some options to try
+ //gwinSliderSetRange(ghSlider1, 0, 70000);
+ //gwinSliderSetRange(ghSlider2, -4, 4);
+ //gwinSliderSetRange(ghSlider1, 4, -4);
+
// Console to display slider events
wi.g.y = 40; wi.g.x = 40; wi.g.width = gdispGetWidth()-50; wi.g.height = gdispGetHeight()-50;
ghConsole = gwinConsoleCreate(0, &wi.g);
@@ -90,7 +95,7 @@ int main(void) {
case GSLIDER_EVENT_START: sAction = "START"; break;
default: sAction = "????"; break;
}
- gwinPrintf(ghConsole, "Slider %s = %d%% %s\n", gwinGetText(pe->gwin), pe->position, sAction);
+ gwinPrintf(ghConsole, "Slider %s = %d %s\n", gwinGetText(pe->gwin), pe->position, sAction);
break;
default: