(defun c:ttt (/)
(command "OPENDCL")
(dcl_Project_Load "BlockManager" T)
(dcl_Form_Show BlockManager_Form1)
(princ)
)
(defun c:Untitled/Form1#OnInitialize (/)
(setq strPath (list
(list "Metric" "W:\\Engineering\\AutoCAD Support\\Blocks\\Borders\\Metric")
(list "Imperial" "W:\\Engineering\\AutoCAD Support\\Blocks\\Borders\\Imperial"))
);setq
(dcl-Control-SetList BlockManager/Form1/Shortcut (mapcar '(lambda (x) (car x)) strPath))
(dcl-BlockView-LoadDwg BlockManager/Form1/BlockView "") ;; new line to clear viewblock
;(dcl-BlockView-Clear BlockManager/Form1/BlockView)
)
(defun c:BlockManager/Form1/Shortcut#OnSelChanged (ItemIndexOrCount Value /)
(dcl-ListBox-Dir BlockManager/Form1/DWGList (setq oBlockPreviewFolder (cadr(nth (dcl-ListBox-GetCurSel BlockManager/Form1/shortcut) strPath))) "*.dwg")
)
(defun c:BlockManager/Form1/DWGList#OnSelChanged (ItemIndexOrCount Value /)
(dcl-BlockView-LoadDwg BlockManager/Form1/BlockView (setq oBlockPreviewFile(strcat oBlockPreviewFolder "\\" Value)));_ load the DWG
(dcl-BlockView-Zoom BlockManager/Form1/BlockView 0.75)
)
(defun c:BlockManager/Form1/Insert#OnClicked (/)
(dcl_Form_Hide BlockManager_Form1)
(command "._insert" oBlockPreviewFile '(0 0 0) 1 1 0)
)
Quoteinteresting... after updating with the latest runtime I'm noticing dialogs with many controls including combos are snappier to open!
Quote from: owenwengerd on May 25, 2024, 01:15:53 PMThanks, I found and fixed a bigger leak in several combo types. I'll include the fix in the next release.Interesting... after updating with the latest runtime I'm noticing dialogs with many controls including combos are snappier to open!
Quote from: owenwengerd on May 27, 2024, 11:43:15 AMI checked tt-text-box.odcl, but I did not notice any leaks. I think the effect in that case is just due to normal and unavoidable memory fragmentation, not actual leaks.And what about TAB STRIP ?