Skip to content

Improve cancel - #18

Merged
dfranx merged 6 commits into
dfranx:mainfrom
macpete:improve-cancel
Dec 6, 2021
Merged

Improve cancel#18
dfranx merged 6 commits into
dfranx:mainfrom
macpete:improve-cancel

Conversation

@macpete

Copy link
Copy Markdown
Contributor

Builds on #17.

This improves the behavior of the Cancel function. Previously, when pressing the Cancel button in the bottom bar, a path was returned via HasResult() if the dialog type was IFD_DIALOG_DIRECTORY, the same as when Open was pressed.

Also the ESCAPE key can now be pressed to cancel the dialog.

Master and docking branch both work.
Otherwise the compiler complains that they have been "declared ‘static’
but never defined" in user code.
Mostly int/size_t mismatches.
- top bar isn't cut off anymore if a larger font is used (i.e, 48 points for high-dpi displays)
- button sizes for Open/Save and Cancel in the bottom bar now also depend on the font size
- the frame inset at the bottom frame border now has the same size as for the other borders (it was slightly too big before)
@macpetemacpete mentioned this pull request Nov 18, 2021
@dfranx
dfranx merged commit a475347 into dfranx:mainDec 6, 2021
@dfranx

Copy link
Copy Markdown
Owner

Thanks, merged!

@macpete
macpete deleted the improve-cancel branch December 8, 2021 18:29

@ghostghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@macpete@dfranx