Commit 0cdd32db authored by Aayush's avatar Aayush

to get the pd_message for the selected objects

parent 3e11dbf3
Pipeline #1664 failed with stage
in 0 seconds
......@@ -1167,12 +1167,16 @@ function menu_quit() {
exports.menu_quit = menu_quit;
function ascii_entry(cid,textarea_state)
function ascii_entry(cid,textarea_state,pd_message,pd_message_length)
{
gui(cid).get_elem("ascii_art", function(w) {
var ascii_art = patchwin[cid].window.document.getElementById("ascii_art"),
ascii_art_text_area = patchwin[cid].window.document.getElementById("ascii_art_text_area");
if (textarea_state) {
//Just to check if we are getting the correct pd_message
if(pd_message_length>0) {
ascii_art_text_area.value=pd_message;
}
ascii_art.style.setProperty("display", "inline");
ascii_art_text_area.focus();
ascii_art_text_area.select();
......
......@@ -174,9 +174,16 @@ static void canvas_nlet_conf (t_canvas *x, int type) {
static void canvas_ascii_entry(t_canvas *x, t_floatarg textarea_state)
{
int state = textarea_state;
gui_vmess("ascii_entry","xi",
t_binbuf *b = binbuf_new();
b = canvas_docopy(x);
char *b_string;
int b_length;
binbuf_gettext(b,&b_string,&b_length);
gui_vmess("ascii_entry","xisi",
x,
state);
state,
b_string,
b_length);
}
void canvas_getscroll (t_canvas *x) {
//sys_vgui("pdtk_canvas_getscroll .x%lx.c\n",(long)x);
......
Markdown is supported
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