For Programmers: Free Programming Magazines  


Home > Archive > Tcl > March 2008 > positioning tk_getOpenFile dialog









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author positioning tk_getOpenFile dialog
impm001@yahoo.com

2008-03-31, 10:22 pm

Hi all,

What is the option to display the tk_getOpenFile dialog at location
x,y in Tcl/Tk8.5.0?. With Tcl/Tck8.4.13, this would be given using "
-x <xlox>" and "-y <yloc>"

(even though it is not documented).

But in Tcl/Tk8.5.0, giving -x and -y options throws the error that it
is not a valid option. Is there a way to give the position one wants
to display the dialog at?

Thanks in advance,
Mona.
Donal K. Fellows

2008-03-31, 10:22 pm

impm001@yahoo.com wrote:
> What is the option to display the tk_getOpenFile dialog at location
> x,y in Tcl/Tk8.5.0?. With Tcl/Tck8.4.13, this would be given using "
> -x <xlox>" and "-y <yloc>" (even though it is not documented).


I didn't know about that! Which platform?

> But in Tcl/Tk8.5.0, giving -x and -y options throws the error that it
> is not a valid option. Is there a way to give the position one wants
> to display the dialog at?


Officially, we only support "associating" the dialogs with another
widget (via the -parent option), and not fine positioning.

Donal.
impm001@yahoo.com

2008-03-31, 10:22 pm

On Mar 31, 11:35 am, "Donal K. Fellows"
<donal.k.fell...@manchester.ac.uk> wrote:
> impm...@yahoo.com wrote:
>
> I didn't know about that! Which platform?
>
>
> Officially, we only support "associating" the dialogs with another
> widget (via the -parent option), and not fine positioning.
>
> Donal.


Both Windows and all UNIX platforms. This worked in tcl/tk8.4.13.
In tcl/tk8.5.0, the dialog always comes up on the left screen corner.
impm001@yahoo.com

2008-03-31, 10:22 pm

Alright, never mind. This is something we added a while back to the
tcl code.

Thanks.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com