Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
8c8aa0a5
Commit
8c8aa0a5
authored
Aug 02, 2013
by
Ivica Bukvic
Browse files
added dynamic scrolling when dynamically changing message contents
parent
c3fb231f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_text.c
View file @
8c8aa0a5
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment