Tk Source Code

View Ticket
Login
2025-08-12
07:47 Ticket [7c28f835] Restraint file dialogs if they don't fit on the screen status still Open with 5 other changes artifact: 2df65639 user: oehhar
2025-08-11
08:47
[7c28f835] merge-in Csabas work to constrained the Window, if it is larger than the screen. This is only used for non-file dialogs. Closed-Leaf check-in: 3b69d518 user: oehhar tags: 7c28f835-file-dialog-zoom-small-screen
07:34 Add attachment choosedir_constraint.png to ticket [7c28f835] artifact: 7643877d user: oehhar
07:33 Ticket [7c28f835] Zoom file dialogs if they don't fit on the screen status still Open with 4 other changes artifact: 25a28448 user: oehhar
07:30
[7c28f835] Alternate solution by Csaba to constraint the window, if it does not fit on the screen check-in: 7c5778e6 user: oehhar tags: 7c28f835-file-dialog-zoom-small-screen-limit
07:19
[7c28f835] add widthdraw to avoid theoretical flickering. check-in: dbe49359 user: oehhar tags: 7c28f835-file-dialog-zoom-small-screen
2025-08-08
14:40 Add attachment file_dialog_zoomed.png to ticket [7c28f835] artifact: 1fae0771 user: oehhar
14:40 Add attachment file_dialog_android.png to ticket [7c28f835] artifact: 2e7be665 user: oehhar
14:36 Ticket [7c28f835] Zoom file dialogs if they don't fit on the screen status still Open with 4 other changes artifact: b95a39de user: oehhar
14:33
[7c28f835] Zoom file dialogs if they don't fit on the screen check-in: 0b451ef2 user: oehhar tags: 7c28f835-file-dialog-zoom-small-screen
14:20 New ticket [7c28f835] Zoom file dialogs if they don't fit on the screen. artifact: 83ead36b user: oehhar

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: Open Last Modified: 2025-08-12 07:47:55
Resolution: None Closed By: nobody
    Closed on:
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-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: