TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: SMadsen on May 20, 2005, 08:26:44 AM
-
Clicking a DCL image_button will momentarily invert the entire image area. Does anyone know how to avoid this inversion?
I don't remember the DDVPOINT dialog ever having showed that feature but after having loaded the old .lsp/.dcl based DDVPOINT in r2006, it does invert the image buttons (which makes me believe the feature can't be disabled).
Below are a few lines to test it with. I've tried fiddling with FILL_IMAGE, MODE_TILE and different colors. Nothing seems to stop the inversion.
;; LSP
(defun drawVector (x y pt)
(cond (pt (start_image "p_image")
(vector_image (car pt)(cadr pt) x y 2)
(end_image))
)
(list x y)
)
(defun mainDlg (/ dcl_id lastpt)
(setq dcl_id (load_dialog "image_test.DCL"))
(cond ((new_dialog "maindlg" dcl_id)
(action_tile "p_image" "(setq lastpt (drawVector $x $y lastpt))")
(start_dialog)
(unload_dialog dcl_id))
)
)
//DCL
maindlg : dialog {
label = "Testing image_button";
: image_button {
key = "p_image";
width = 40;
aspect_ratio = 1.0;
color = 0;
}
ok_cancel;
}
-
How much xml is in 2k6? Are there xslt files that control any of the look?
-
I don't think there are any config files controlling this behavior .. but not sure. Just tried it in 2005. It also inverts the image area.
-
ACAD2000 & 2004 using Windows 2000, works fine here.
Are you getting a inverted flash of the vectors you are drawing?
That is what I undurstood to be the problem.
The vectors are steady. no inversion or flash here.
-
Thanks CAB. That's how I remember image buttons behaving before.
Yes, it's inverting, or flashing, the entire area when clicking the mouse in it. Like when selecting the image with mode_tile 4.
Wait a minute! Just tested it in 2005 and 2006 at home and neither inverts it! :shock:
Hmmm .. should go look for some settings after all I think.