Commit e4348dd3 authored by user's avatar user
Browse files

fixed new message box mouse behavior, revised comments and spacing

parent 0e6d581a
...@@ -61,8 +61,8 @@ var canvas_events = (function() { ...@@ -61,8 +61,8 @@ var canvas_events = (function() {
//pdgui.gui_post("x: " + evt.pageX + " y: " + evt.pageY + //pdgui.gui_post("x: " + evt.pageX + " y: " + evt.pageY +
// " modifier: " + (evt.shiftKey + (evt.ctrlKey << 1))); // " modifier: " + (evt.shiftKey + (evt.ctrlKey << 1)));
pdgui.pdsend(name + pdgui.pdsend(name +
" motion " + evt.pageX + " " + evt.pageY + " " + " motion " + evt.pageX + " " + evt.pageY + " " +
(evt.shiftKey + (evt.ctrlKey << 1))); (evt.shiftKey + (evt.ctrlKey << 1)));
evt.stopPropagation(); evt.stopPropagation();
evt.preventDefault(); evt.preventDefault();
return false; return false;
......
...@@ -599,8 +599,8 @@ void rtext_activate(t_rtext *x, int state) ...@@ -599,8 +599,8 @@ void rtext_activate(t_rtext *x, int state)
state = 2 editing a new object state = 2 editing a new object
State 2 isn't necessary, except that Pd has State 2 isn't necessary, except that Pd has
traditionally had this "floating" state for traditionally had this "floating" state for
new objects where the box text also happens new objects where the box text is editable and
to be editable the box position follows the mouse
*/ */
widthspec = x->x_text->te_width; // width if any specified widthspec = x->x_text->te_width; // width if any specified
......
...@@ -794,7 +794,8 @@ void canvas_msg(t_glist *gl, t_symbol *s, int argc, t_atom *argv) ...@@ -794,7 +794,8 @@ void canvas_msg(t_glist *gl, t_symbol *s, int argc, t_atom *argv)
glist_add(gl, &x->m_text.te_g); glist_add(gl, &x->m_text.te_g);
glist_noselect(gl); glist_noselect(gl);
glist_select(gl, &x->m_text.te_g); glist_select(gl, &x->m_text.te_g);
gobj_activate(&x->m_text.te_g, gl, 1); gobj_activate(&x->m_text.te_g, gl,
2); // <-- hack to signal we're a new message box
if (connectme == 1) if (connectme == 1)
canvas_connect(gl, indx, 0, nobj, 0); canvas_connect(gl, indx, 0, nobj, 0);
else if (connectme == 0) else if (connectme == 0)
......
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