2010-03-19 19:29 UTC
Its been so long since I switched to calling things like:
(DCL_Form_IsActive "CT-Civil10" "frmCT-Civil-Mst")
that i forget why I do that.
I recall it was for separate namespace vlx, which is what I always compile to.
The problem I am seeing is I load using (DCL_Project_Load (findfile "CT-Civil10.odcl.lsp")),
then check if a modeless dialog is open, but get an error.
I read that you check if the var exists to avoid calling DCL_Form_IsActive and DCL_Form_Close with nulls,
but its not working.
I am trying:
(IF (OR (NOT (vl-doc-ref 'CT-Civil10_frmCT-Civil-Mst))
(NOT (DCL_Form_IsActive "CT-Civil10" "frmCT-Civil-Mst")))
;SHOW TOOLBAR
(DCL_Form_Show "CT-Civil10" "frmCT-Civil-Mst")
)
I'm kind of lost though.
The tasks I need to do are:
1) close a particular dialog if open
2) show a form if not open
what are the recommended ways for current odcl version of 5.1
thanks
(DCL_Form_IsActive "CT-Civil10" "frmCT-Civil-Mst")
that i forget why I do that.
I recall it was for separate namespace vlx, which is what I always compile to.
The problem I am seeing is I load using (DCL_Project_Load (findfile "CT-Civil10.odcl.lsp")),
then check if a modeless dialog is open, but get an error.
I read that you check if the var exists to avoid calling DCL_Form_IsActive and DCL_Form_Close with nulls,
but its not working.
I am trying:
(IF (OR (NOT (vl-doc-ref 'CT-Civil10_frmCT-Civil-Mst))
(NOT (DCL_Form_IsActive "CT-Civil10" "frmCT-Civil-Mst")))
;SHOW TOOLBAR
(DCL_Form_Show "CT-Civil10" "frmCT-Civil-Mst")
)
I'm kind of lost though.
The tasks I need to do are:
1) close a particular dialog if open
2) show a form if not open
what are the recommended ways for current odcl version of 5.1
thanks