rem: {static int i=0; switch(i++) { case 0: WMSetTextHasHorizontalScroller(text, False); break; case 1: WMSetTextHasVerticalScroller(text, False); break; case 2: WMSetTextHasVerticalScroller(text, True); break; case 3: WMSetTextHasHorizontalScroller(text, True); break; default: i=0;
add: {static int i=0; switch(i++) { case 0: WMSetTextHasHorizontalScroller(text, False); break; case 1: WMSetTextHasVerticalScroller(text, False); break; case 2: WMSetTextHasVerticalScroller(text, True); break; case 3: WMSetTextHasHorizontalScroller(text, True); break; default: i=0; } }
context: void NotificationObserver(void *self, WMNotification *notif){    void *object = WMGetNotificationObject(notif);    unsigned short w = WMWidgetWidth(win);    unsigned short h = WMWidgetHeight(win);        if (WMGetNotificationName(notif) == WMViewSizeDidChangeNotification) {        if (object == WMWidgetView(win)) {            WMResizeWidget(text, w-20, h-20);		}	}{static int i=0;switch(i++) {case 0: WMSetTextHasHorizontalScroller(text, False); break;case 1: WMSetTextHasVerticalScroller(text, False); break;case 2: WMSetTextHasVerticalScroller(text, True); break;case 3: WMSetTextHasHorizontalScroller(text, True); break;default: i=0;}}}