Hello
I've found some new imperfections..
Regards
Not clean (ControlBar/Palette) : Opening an "undocked" ControlBar or Palette
Opening a ControlBar/Palette with coordinates seems to open it first as docked, before positioning it in the specified position (can see it for a split second)
> Please open "cropped!.odcl" and keep an eye on the left side :
(defun c:go ()
(command "OPENDCL")
(dcl_Project_Load "cropped!" T)
(dcl_Form_Show cropped!_Form1 '10 10) ; ControlBar
(dcl_Form_Show cropped!_Form2 '10 10) ; Palette
(princ)
)
Display problem (ControlBar) : Resizing a ControlBar (AllowResizing=T) crops controls
> Please see text in the ControlBar (Form1) in "cropped!.odcl"
Incohérence (ControlBar) : resizing handles appear while Resizing=nil
Resizing-handles (horizontal/vertical double arrows) re-appear after the ControlBar has been moved, or its docked state changed. Handles are displayed while resizing isn't possible
> Please change AllowResizing (to nil) in cropped!_Form1, save, re-open, Move the ControlBar and place the cursor on one of the borders
Update problem (ControlBar/Palette) : AutoCad is not updated from "undocked" Dialog
The sample below (Update!.odcl) deletes entities of the current selection set
If the Dialog isn't docked AutoCad is updated by (dcl_SetCmdBarFocus)
If the Dialog is docked AutoCad is updated when mouse moved off the dialog (dcl_SetCmdBarFocus doesn't works)
> Please open "Update!.odcl" select something and press DELETE :
(defun c:go ()
(command "OPENDCL")
(dcl_Project_Load "Update!" T)
(dcl_Form_Show Update!_Form1) ; ControlBar
;;; (dcl_Form_Show Update!_Form2) ; Palette
;;; (dcl_Form_Show Update!_Form3) ; Modeless
(princ)
)
(defun c:Update!_Form1_TextButton1_OnClicked (/ sel cnt)
(setq sel (cadr (ssgetfirst))
cnt (sslength sel))
(repeat cnt
(setq cnt (1- cnt))
(setq obj (vlax-ename->vla-object (ssname sel cnt)))
(vla-delete obj)
(dcl_SetCmdBarFocus) ; Updates only if "undocked" Dialog
)
)
"Save changes ?" alert is not fired (Interface)
This happens only with new and freshly saved files, it doesn't happen with opened and modified files.
> Open DCLstudio, add a dialog, and save it. Now properties and events modifications (I have not tried other) doesn't fire the alert