TWidget * ti_thumbscript_create()
{
	TWidget * wid = ti_create_tim_widget(-1, 0);
	wid->draw = ti_thumbscript_draw;
	wid->stap = ti_thumbscript_stap;
	wid->down = ti_thumbscript_down;
	ti_thumbscript_reset();
	return wid;
}
TWidget * ti_mlwlb_create(int n)
{
	TWidget * wid = ti_create_tim_widget(-1, 0);
	wid->draw = ti_mlwlb_draw;
	wid->down = ti_mlwlb_down;
	wid->button = ti_mlwlb_button;
	wid->held = ti_mlwlb_held;
	wid->scroll = ti_mlwlb_scroll;
	wid->holdtime = 500;
	ti_mlwlb_numeric = n;
	ti_mlwlb_reset();
	return wid;
}
Beispiel #3
0
TWidget * ti_dial_create(int n, int s, int st)
{
	TWidget * wid = ti_create_tim_widget(-1, 0);
	wid->down = ti_dial_down;
	wid->scroll = ti_dial_scroll;
	wid->draw = ti_dial_draw;
	if (st) {
		wid->stap = ti_dial_stap;
	}
	ti_dial_mode = n;
	ti_dial_snapback = s;
	ti_dial_reset();
	ti_dial_ppchar = 0;
	ti_dial_pchar = 0;
	return wid;
}