Subversion Repositories Kolibri OS

Rev

Rev 8465 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8465 Rev 8508
Line 71... Line 71...
71
				if (get_os_button() == 1) exit(0);
71
				if (get_os_button() == 1) exit(0);
72
				break;
72
				break;
Line 73... Line 73...
73
		  
73
		  
74
			case KOLIBRI_EVENT_KEY:
74
			case KOLIBRI_EVENT_KEY:
-
 
75
				edit_box_key(&ed, get_key().val);
75
				edit_box_key(&ed, get_key().val);
76
                draw_window();
Line 76... Line 77...
76
				break;
77
				break;
77
			 
78
			 
78
			case KOLIBRI_EVENT_REDRAW:
79
			case KOLIBRI_EVENT_REDRAW:
Line 95... Line 96...
95
							scroll.position=scroll.max_area-scroll.cur_area;
96
							scroll.position=scroll.max_area-scroll.cur_area;
96
						}
97
						}
97
					}
98
					}
98
                    else if((short)wheels < 0 && scroll.position > 0){
99
                    else if((short)wheels < 0 && scroll.position > 0){
99
            			scroll.position -= scroll_strong;
100
            			scroll.position -= scroll_strong;
-
 
101
						if((int)scroll.position<0){
-
 
102
							scroll.position=0;
-
 
103
						}
100
					}
104
					}
101
            		scrollbar_v_draw(&scroll);
105
            		scrollbar_v_draw(&scroll);
102
                }
106
                }
103
				break;
107
				break;
104
		}
108
		}