Skip to content

Commit

Permalink
Playtime: Improve Windows window frame
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Nov 9, 2023
1 parent a344954 commit 0a26185
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 2 additions & 0 deletions dialogs/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,8 @@ pub enum Style {
WS_CAPTION,
WS_SYSMENU,
WS_THICKFRAME,
WS_MINIMIZEBOX,
WS_MAXIMIZEBOX,
/// Necessary on Windows to make it a top-level window.
WS_OVERLAPPEDWINDOW,
DS_CONTROL,
Expand Down
13 changes: 5 additions & 8 deletions dialogs/src/empty_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ pub fn create(context: ScopedContext, ids: &mut IdGenerator) -> Dialog {
caption: "Editor",
rect: context.rect(0, 0, 600, 250),
styles: Styles(vec![
DS_SETFONT,
// DS_MODALFRAME,
DS_3DLOOK,
DS_FIXEDSYS,
// Places the window into the center by default
DS_CENTER,
WS_POPUP,
WS_VISIBLE,
WS_CAPTION,
// Displays a close button
WS_SYSMENU,
// Displays a maximize button
WS_MAXIMIZEBOX,
// Allows user to change size of window
WS_THICKFRAME,
WS_OVERLAPPEDWINDOW,
]),
..context.default_dialog()
}
Expand Down

0 comments on commit 0a26185

Please sign in to comment.