Thursday, August 17, 2017

#1 2017-08-01 02:41:09 pm

rubik
Member
Registered: 2017-05-31
Posts: 5

Can the X-Y coordinates of a Dialog Toolkit dialog be specified?

I would like a Dialog Toolkit dialog to appear in the lower-right-hand corner of the screen (instead of sitting in the center of the screen).

Is this feasible?

Offline

 

#2 2017-08-01 06:34:51 pm

DJ Bazzie Wazzie
Member
From:: the Netherlands
Registered: 2004-10-20
Posts: 2683
Website

Re: Can the X-Y coordinates of a Dialog Toolkit dialog be specified?

rubik wrote:

I would like a Dialog Toolkit dialog to appear in the lower-right-hand corner of the screen (instead of sitting in the center of the screen).

Is this feasible?



Yes, if you create the panel window with ASObjC you can set the location of a panel anywhere you want. However, the standard addition (display dialog command) is injected into a target application if setm which is impossible with ASObjC. You can only show a panel in the current application context in ASObjC.

Offline

 

#3 2017-08-01 10:47:07 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5079

Re: Can the X-Y coordinates of a Dialog Toolkit dialog be specified?

rubik wrote:

I would like a Dialog Toolkit dialog to appear in the lower-right-hand corner of the screen (instead of sitting in the center of the screen).

Is this feasible?



Not using Dialog Toolkit, no. It 's still an alert, and therefore appears where all alerts appear.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)