OnclickedEvent not launch with BeginDragnDrop allowed on GraphicsButton Control

Started by stephan_35, September 18, 2009, 12:59:16 PM

Previous topic - Next topic

stephan_35

Hello,

Here is something, maybe not a bug, but something impossible to do with a graphics button.

OnClicked Event is not call with Drag/Drop begin allow checked !

Here is an example :

Code (autolisp) Select

(dcl_project_load "D:/gb" T)
(defun c:gb_gb:demo_GraphicButton1_OnClicked (/)
  (dcl_MessageBox "To Do: code must be added to event handler\r\nc:gb_gb:demo_GraphicButton1_OnClicked" "To do")
)
(defun c:html_gb:demo_ListBox1_OnDragnDropFromControl (ProjectName FormName ControlName DropPoint /)
  (alert (strcat "\n c:html_gb:demo_ListBox1_OnDragnDropFromControl " ProjectName" " FormName " " ControlName))
)
(dcl_Form_Show gb_gb:demo)

OpenDCL 6.0.0.6 / Editor 5.1.2.3  / Vista 32 Bits
Development of  specific tools for trades in AutoLisp - php - sql

owenwengerd

I've added code in Alpha 5 to fake the OnClicked event when no drag/drop takes place.  Excellent sample, by the way -- that makes my job a lot easier.
Owen Wengerd (Outside The Box) / ManuSoft