Commit 8c8aa0a5 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

added dynamic scrolling when dynamically changing message contents

parent c3fb231f
......@@ -535,12 +535,14 @@ static void message_set(t_message *x, t_symbol *s, int argc, t_atom *argv)
binbuf_clear(x->m_text.te_binbuf);
binbuf_add(x->m_text.te_binbuf, argc, argv);
glist_retext(x->m_glist, &x->m_text);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)x->m_glist);
}
static void message_add2(t_message *x, t_symbol *s, int argc, t_atom *argv)
{
binbuf_add(x->m_text.te_binbuf, argc, argv);
glist_retext(x->m_glist, &x->m_text);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)x->m_glist);
}
static void message_add(t_message *x, t_symbol *s, int argc, t_atom *argv)
......@@ -548,6 +550,7 @@ static void message_add(t_message *x, t_symbol *s, int argc, t_atom *argv)
binbuf_add(x->m_text.te_binbuf, argc, argv);
binbuf_addsemi(x->m_text.te_binbuf);
glist_retext(x->m_glist, &x->m_text);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)x->m_glist);
}
static void message_addcomma(t_message *x)
......@@ -556,11 +559,13 @@ static void message_addcomma(t_message *x)
SETCOMMA(&a);
binbuf_add(x->m_text.te_binbuf, 1, &a);
glist_retext(x->m_glist, &x->m_text);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)x->m_glist);
}
static void message_addsemi(t_message *x)
{
message_add(x, 0, 0, 0);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)x->m_glist);
}
static void message_adddollar(t_message *x, t_floatarg f)
......@@ -572,6 +577,7 @@ static void message_adddollar(t_message *x, t_floatarg f)
SETDOLLAR(&a, n);
binbuf_add(x->m_text.te_binbuf, 1, &a);
glist_retext(x->m_glist, &x->m_text);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)x->m_glist);
}
static void message_adddollsym(t_message *x, t_symbol *s)
......@@ -584,6 +590,7 @@ static void message_adddollsym(t_message *x, t_symbol *s)
SETDOLLSYM(&a, gensym(buf));
binbuf_add(x->m_text.te_binbuf, 1, &a);
glist_retext(x->m_glist, &x->m_text);
sys_vgui("pdtk_canvas_getscroll .x%lx.c\n", (t_int)x->m_glist);
}
static void message_click(t_message *x,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment