Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the width and height of the tk_getOpenFile dialog

Status
Not open for further replies.

AndyM48

Technical User
Apr 9, 2021
2
FR


I have a tcltk applications which calls the tk_getOpenFile dialog. However the screen dimensions on the device that I am using are very small so the dialog does not fit on the screen. If I call the dialog and adjust the width and height, then it fits the screen, and any subsequent calls to the dialog will keep the same dimensions.

So my question is, how do I set the dimensions of the tk_getOpenFile dialog box when I start my application?

(With tk_messageBox I can do something similar by adjusting the options database:
option add *Dialog.msg.wrapLength 12c
option add *Dialog.dtl.wrapLength 12c
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top