problems BlockView

Started by garcigj, January 10, 2014, 03:46:12 AM

Previous topic - Next topic

owenwengerd

I understood that OnSize is not firing. However, your demo appears to show OnSize firing as expected.

owenwengerd

I put the following in the OnSize handler for my test app and set the splitter's Closest Outside value to 100. This prevents the control from getting to a zero height. I did not test the width, but the same principle can be applied. Maybe this will help you.

Code (autolisp) Select

(defun c:bvsize/Form1#OnSize (NewWidth NewHeight /)
  (if (< NewHeight 200)
    (dcl-Control-SetUseBottomFromBottom bvsize/Form1/BlockView1 0)
    (progn
      (dcl-Control-SetBottomFromBottom bvsize/Form1/BlockView1 5)
      (dcl-Control-SetUseBottomFromBottom bvsize/Form1/BlockView1 1)
    )
  )
)

garcigj

Still not working, I'm a little frustrated, will investigate this a bit more but I think there is no solution.

I will inform the forum if I get some conclusion.

Thanks anyway Owen

José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

If you want help, I need more information than "not working". Is my sample not working, or is something else not working? It is working for me.