Commit 6413e89c authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fixed "pos" gui update for cnv

parent e0d40474
......@@ -2792,7 +2792,8 @@ function gui_create_mycanvas(cid,tag,color,x1,y1,x2_vis,y2_vis,x2,y2) {
height: y2 - y1,
fill: 'none',
stroke: color,
id: tag + 'drag_handle'
id: tag + 'drag_handle',
'class': 'border'
}
);
var g = get_gobj(cid,tag);
......@@ -2804,9 +2805,9 @@ function gui_update_mycanvas(cid, tag, color, selected) {
var r = get_item(cid, tag + 'rect');
var h = get_item(cid, tag + 'drag_handle');
configure_item(r, { fill: color, stroke: color });
if (!selected) {
configure_item(h, { stroke: color });
}
// if (!selected) {
// configure_item(h, { stroke: color });
// }
}
function gui_mycanvas_coords(cid, tag, vis_width, vis_height, select_width, select_height) {
......@@ -2817,8 +2818,8 @@ function gui_mycanvas_coords(cid, tag, vis_width, vis_height, select_width, sele
}
function gui_mycanvas_select_color(cid,tag,color) {
var item = get_item(cid,tag + 'drag_handle');
configure_item(item, {stroke: color});
// var item = get_item(cid,tag + 'drag_handle');
// configure_item(item, {stroke: color});
}
function gui_create_scalar(cid, tag, isselected, t1, t2, t3, t4, t5, t6,
......
......@@ -49,6 +49,8 @@ void my_canvas_draw_move(t_my_canvas *x, t_glist *glist)
int x1=text_xpix(&x->x_gui.x_obj, glist);
int y1=text_ypix(&x->x_gui.x_obj, glist);
iemgui_base_draw_move(&x->x_gui);
//sys_vgui(".x%lx.c coords %lxRECT %d %d %d %d\n",
// canvas, x, x1, y1, x1+x->x_vis_w, y1+x->x_vis_h);
//sys_vgui(".x%lx.c coords %lxBASE %d %d %d %d\n",
......
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