Tk Source Code

View Ticket
Login
Ticket UUID: 7c28f8351e3cebeb654b3aa5af6f00cce04085d0
Title: Restraint file dialogs if they don't fit on the screen
Type: RFE Version: main
Submitter: oehhar Created on: 2025-08-08 14:20:58
Subsystem: 37. [tk_get*File] Assigned To: oehhar
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2025-08-18 16:03:59
Resolution: Fixed Closed By: oehhar
    Closed on: 2025-08-18 16:03:59
Description:

On small x screen size, tk_getOpenFile and friends are larger than the screen. This makes the dialog hard to use.

Proposal is to show them in zoom state in this case.

A typical application is Androwish, but this may also hit other screens with limited place.

An implementation is proposed in branch [7c28f835-file-dialog-zoom-small-screen], starting from commit [0b451ef2].

Note: this ticket is a sister of ticket [e19f1d891] and requires its functions to get the decoration frame width.

Any comment welcome !

Harald

User Comments: oehhar added on 2025-08-18 16:03:59:
Commited by [5261679b]. Thank you all. Closing.

oehhar added on 2025-08-17 13:45:23:

Francois, thank you for the message. All the best for you and thanks for the great work over decades, I appreciate.

As Csaba is in favor to merge, I will do that soon. I also asked in the last meeting and there was no objection

Thanks for all, Harald


fvogel added on 2025-08-17 09:54:34:
As explained elsewhere I'm currently on break from this project. I don't plan to resume soon. You should proceed without my feedback.

oehhar added on 2025-08-12 07:47:55:

CI is all green.

I will wait for Francois.

If it is ok for him, I will merge the work by Csaba.

The fullscreen solution is IMHO only applicable for Android and is not merged to plain Tk. The ticket and screenshots are here: https://androwish.org/home/info/043a010d9e9fdcb3


oehhar added on 2025-08-11 07:33:21:

Great work was done by Csaba to constraint the windows on the physical screen, if it is larger.

This work is in branch [7c28f835-file-dialog-zoom-small-screen-limit] starting with commit [7c5778e6]

A screenshot on Android is attached with the file name "choosedir_constraint.png".

IMHO this is an improvement for all Tk applications.

Thanks for all, Harald


Attachments: