OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: hanslammerts on January 11, 2017, 04:31:57 AM

Title: default location for a modeless dialog
Post by: hanslammerts on January 11, 2017, 04:31:57 AM
Hi

I'm wondering if there is a possibility to control the (startup) location of a modeless dialog.p
prefferable on the bottom of the active window.

I switch a lot between working places, working eiher with single a or and dual monitor desk
Want to avoid dragging the controlbar if possible. It's for this one.

http://www.opendcl.com/forum/index.php?topic=2446.msg12212#msg12212

Kind regards
Hans
Title: Re: default location for a modeless dialog
Post by: owenwengerd on January 11, 2017, 08:13:35 PM
You can specify the position when calling (dcl-Form-Show) (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/Form/Show.htm).
Title: Re: default location for a modeless dialog
Post by: hanslammerts on January 15, 2017, 01:41:54 PM
Thanks mr. Wengerd
Made it..
(dcl-Form-Show Osnaps/Main 750 0)
to have it somewhere in the top middle.
That seems like a nice place to have it!
Thanks a lot

Title: Re: default location for a modeless dialog
Post by: roy_043 on January 17, 2017, 10:26:02 AM
Hans is touching on an interesting idea for a new ODCL feature:
Store information about ODCL dialogs not just per profile but also per workspace.

I have meanwhile implemented this for the project linked to in the OP (http://www.opendcl.com/forum/index.php?topic=2446.msg12212#msg12212) using reactors.
Title: Re: default location for a modeless dialog
Post by: hanslammerts on January 17, 2017, 01:44:29 PM
Will use and test this code for a while Roy.