Author Topic: Non-inverting clicks in image_button  (Read 2014 times)

0 Members and 1 Guest are viewing this topic.

SMadsen

  • Guest
Non-inverting clicks in image_button
« 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.
Code: [Select]
;; 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;
}

daron

  • Guest
Non-inverting clicks in image_button
« Reply #1 on: May 20, 2005, 08:40:29 AM »
How much xml is in 2k6? Are there xslt files that control any of the look?

SMadsen

  • Guest
Non-inverting clicks in image_button
« Reply #2 on: May 20, 2005, 09:06:13 AM »
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.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Non-inverting clicks in image_button
« Reply #3 on: May 20, 2005, 03:57:48 PM »
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.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

SMadsen

  • Guest
Non-inverting clicks in image_button
« Reply #4 on: May 20, 2005, 05:54:33 PM »
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.