The DataCAD Developer Network (DDN) is an online resource for information and support for DCAL® (DataCAD Applications Language) developers as well as anyone interested in creating fonts, toolbars, hatch patterns, or linetypes for use in DataCAD.
#80994 by dhs
Wed Jun 08, 2022 5:46 pm
I have some logic that draws some entities immediately before displaying a modal form. The form is displayed, but the entities are not drawn until after the modal form is closed.

Is there a way to force the display to be updated (i.e. the entities to be drawn) before the modal form is displayed ? I have tried a few different things (as detailed below) so any other suggestions would be appreciated.

I tried adding a Pause between drawing the entities and displaying the form. I didn't expect that to help (and it didn't), although I got caught out by the fact that the ms parameter is in fact seconds (and not milliseconds as the parameter name would imply!)

I tried adding a sleep before displaying the form. I didn't expect this to by any different to the pause result (and it wasn't).

Instead of showing the form immediately after drawing the entities I added a new state and entered that state after drawing the entities. The new state then called the callNone procedure and displayed the form after the return from that call. I was more hopeful that this would produce the desired result, but once again the entity display is not updated before the form is displayed.

Thanks,
David H.

Who is online

Users browsing this forum: No registered users and 9 guests

About DataCAD Forum

The DataCAD Forum is a FREE online community we provide to enhance your experience with DataCAD.

We hope you'll visit often to get answers, share ideas, and interact with other DataCAD users around the world.

DataCAD

Software for Architects Since 1984