Moving & resizing a form after show.

Started by BazzaCAD, February 26, 2008, 12:37:48 PM

Previous topic - Next topic

BazzaCAD

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]
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

tlindell

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.

BazzaCAD

a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

tlindell

Good deal.  Looks like they'll be fixed for A7 already.

hermanm

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

hermanm

Anomaly
4b. the expansion arrow points left instead of right, in this case


hermanm

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.:)