Log window screen position

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Log window screen position

Douglas Benn-2
I would be grateful if someone can tell me how to set the screen location (0,0) for a Log Window?

Thanks.

Dr Douglas K Benn, BDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor
Dept of General Dentistry
Creighton University Dental School
2500 California Plaza
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094
Reply | Threaded
Open this post in threaded view
|

Re: Log window screen position

Douglas Benn-2
Subject: Log window screen position
 
I would be grateful if someone can tell me how to set the screen location (0,0) for a Log Window AND a dialog window? I have spent several hours searching the macro language and past emails but cannot find anything.

Thanks.

Dr Douglas K Benn, BDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor
Dept of General Dentistry
Creighton University Dental School
2500 California Plaza
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094
Reply | Threaded
Open this post in threaded view
|

Re: Log window screen position

BenTupper
In reply to this post by Douglas Benn-2
Hello,

On Mar 3, 2010, at 7:01 PM, Benn, Douglas K. wrote:

> I would be grateful if someone can tell me how to set the screen  
> location (0,0) for a Log Window?
>

Assuming that you are using the macro language try the following...

if (isOpen("Log")){
        selectWindow("Log");
        setLocation(0,0);
}


Ben
Reply | Threaded
Open this post in threaded view
|

Re: Log window screen position

Douglas Benn-2
Dear Ben,

Thank you for your reply which is very helpful.

Yes I am using the macro language and your code works fine for a Log window.

I also want to relocate a Dialog window but the "Title" of the Dialog window does not seem to be recognized. I think a Dialog window needs different code?

Best wishes.

Douglas

Dr Douglas K Benn, BDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor
Dept of General Dentistry
Creighton University Dental School
2500 California Plaza
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094



-----Original Message-----
From: ImageJ Interest Group on behalf of Ben Tupper
Sent: Wed 3/3/2010 6:20 PM
To: [hidden email]
Subject: Re: Log window screen position
 
Hello,

On Mar 3, 2010, at 7:01 PM, Benn, Douglas K. wrote:

> I would be grateful if someone can tell me how to set the screen  
> location (0,0) for a Log Window?
>

Assuming that you are using the macro language try the following...

if (isOpen("Log")){
        selectWindow("Log");
        setLocation(0,0);
}


Ben
Reply | Threaded
Open this post in threaded view
|

Re: Log window screen position

Michael Schmid
Hi Douglas,

as far as I can see you can't move a dialog in a macro. In a plugin,  
you can set whether it should be centered or not (see the  
GenericDialog.centerDialog method).

Michael
________________________________________________________________

On 4 Mar 2010, at 02:02, Benn, Douglas K. wrote:

> Dear Ben,
>
> Thank you for your reply which is very helpful.
>
> Yes I am using the macro language and your code works fine for a  
> Log window.
>
> I also want to relocate a Dialog window but the "Title" of the  
> Dialog window does not seem to be recognized. I think a Dialog  
> window needs different code?
>
> Best wishes.
>
> Douglas
>
> Dr Douglas K Benn, BDS, M.Phil., Ph.D., Dipl. Dental Radiology  
> (Royal College of Radiologists, England).
> Professor
> Dept of General Dentistry
> Creighton University Dental School
> 2500 California Plaza
> Omaha
> Nebraska 68178
>
> Tel: (402)280 5025
> Fax: (402)280 5094
>
>
>
> -----Original Message-----
> From: ImageJ Interest Group on behalf of Ben Tupper
> Sent: Wed 3/3/2010 6:20 PM
> To: [hidden email]
> Subject: Re: Log window screen position
>
> Hello,
>
> On Mar 3, 2010, at 7:01 PM, Benn, Douglas K. wrote:
>
>> I would be grateful if someone can tell me how to set the screen
>> location (0,0) for a Log Window?
>>
>
> Assuming that you are using the macro language try the following...
>
> if (isOpen("Log")){
> selectWindow("Log");
> setLocation(0,0);
> }
>
>
> Ben
Reply | Threaded
Open this post in threaded view
|

Re: Log window screen position

Douglas Benn-2
Hi Michael,

Thank you.

Douglas

Dr Douglas K Benn, BDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor
Dept of General Dentistry
Creighton University Dental School
2500 California Plaza
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094



-----Original Message-----
From: ImageJ Interest Group on behalf of Michael Schmid
Sent: Thu 3/4/2010 2:35 AM
To: [hidden email]
Subject: Re: Log window screen position
 
Hi Douglas,

as far as I can see you can't move a dialog in a macro. In a plugin,  
you can set whether it should be centered or not (see the  
GenericDialog.centerDialog method).

Michael
________________________________________________________________

On 4 Mar 2010, at 02:02, Benn, Douglas K. wrote:

> Dear Ben,
>
> Thank you for your reply which is very helpful.
>
> Yes I am using the macro language and your code works fine for a  
> Log window.
>
> I also want to relocate a Dialog window but the "Title" of the  
> Dialog window does not seem to be recognized. I think a Dialog  
> window needs different code?
>
> Best wishes.
>
> Douglas
>
> Dr Douglas K Benn, BDS, M.Phil., Ph.D., Dipl. Dental Radiology  
> (Royal College of Radiologists, England).
> Professor
> Dept of General Dentistry
> Creighton University Dental School
> 2500 California Plaza
> Omaha
> Nebraska 68178
>
> Tel: (402)280 5025
> Fax: (402)280 5094
>
>
>
> -----Original Message-----
> From: ImageJ Interest Group on behalf of Ben Tupper
> Sent: Wed 3/3/2010 6:20 PM
> To: [hidden email]
> Subject: Re: Log window screen position
>
> Hello,
>
> On Mar 3, 2010, at 7:01 PM, Benn, Douglas K. wrote:
>
>> I would be grateful if someone can tell me how to set the screen
>> location (0,0) for a Log Window?
>>
>
> Assuming that you are using the macro language try the following...
>
> if (isOpen("Log")){
> selectWindow("Log");
> setLocation(0,0);
> }
>
>
> Ben