OpenDCL Forums

OpenDCL => Show and Tell => Topic started by: BazzaCAD on February 26, 2008, 12:37:48 PM

Title: Moving & resizing a form after show.
Post by: BazzaCAD on February 26, 2008, 12:37:48 PM
In the latest Alpha build (5.0.0.6) there's a new sample file that show how to move & resize a form after it's been shown.
In version 4.1 & earlier it wasn't possible to move a form after it was shown.
In 5.0 a new function (dcl_Form_SetPos) was added that now makes this possible.
Also the new function (dcl_DelayedInvoke) was used to animate the movement of the form.
See the "FormMover.lsp" or hit the "Mover" button on the MasterDemo form.
This new sample shows 3 different behaviors:
1. Moving a form to different locations on the screen after show.
2. Animated Min./Max. a form to the bottom left corner of the screen.
3. Expand\Collapse (I.E. resize) a form to show more options.

[attachment deleted by admin]
Title: Re: Moving & resizing a form after show.
Post by: tlindell on February 27, 2008, 10:44:55 PM
Barry, thank you for the 8) demostrations.

If you're maintaining the code on the demo's there are a few things I'd like you to check out:

On both the drag-n-drop examples, this includes the copy/paste one, dragging an item to a list box that doesn't already contain another text box results in the dropped item not appearing.  You should see this right away when you try drag-n-dropping in the copy/paste example.  Could actually be a bug...

On the methods example, hitting either "draw text" or "draw hatch rects" results in function errors.
Title: Re: Moving & resizing a form after show.
Post by: BazzaCAD on February 28, 2008, 06:55:57 PM
Good catch thx. I'll post a bug.
Title: Re: Moving & resizing a form after show.
Post by: tlindell on March 01, 2008, 10:02:40 PM
Good deal.  Looks like they'll be fixed for A7 already.
Title: Re: Moving & resizing a form after show.
Post by: hermanm on March 09, 2008, 06:07:40 PM
Fabulous!

I really like this:0)

But, on my system (ACAD 2006 WinXP) I see the following anomaly:

1. Expand the form using the arrow control
2. Minimize the form
3. Re-show the form
4. Anomaly:
the form shows with the expansion part collapsed
Title: Re: Moving & resizing a form after show.
Post by: hermanm on March 09, 2008, 06:09:26 PM
Anomaly
4b. the expansion arrow points left instead of right, in this case

Title: Re: Moving & resizing a form after show.
Post by: hermanm on March 09, 2008, 06:19:03 PM
I haven't looked at the source code, yet, but I also notice that if the minimized form is dragged aroung the screen, re-shown & re-minimized, it always, in the demo at least, minimizes to the lower left.

Should it be possible to
a) specify the location for minimizing?
b)remember the last minimized location  & subsequently use this?

I apologize for not investigating this more closely before posting.:)