Make dialogs look more like frames
We use DIALOG_SHIM to display many items that should behave more like frames with the ability to min/max/resize. This changes the default custom dialog behavior to the frame-type. Fixes: lp:1829950 * https://bugs.launchpad.net/kicad/+bug/1829950
This commit is contained in:
parent
69b6052d6f
commit
ccc3b812b8
|
@ -66,7 +66,7 @@ END_EVENT_TABLE()
|
|||
|
||||
|
||||
DIALOG_SHIM::DIALOG_SHIM( wxWindow* aParent, wxWindowID id, const wxString& title,
|
||||
const wxPoint& pos, const wxSize& size, long style,
|
||||
const wxPoint& pos, const wxSize& size, long style,
|
||||
const wxString& name ) :
|
||||
wxDialog( aParent, id, title, pos, size, style, name ),
|
||||
KIWAY_HOLDER( nullptr, KIWAY_HOLDER::DIALOG ),
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
||||
* Copyright (C) 2012-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2012-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
@ -105,7 +105,7 @@ public:
|
|||
DIALOG_SHIM( wxWindow* aParent, wxWindowID id, const wxString& title,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER,
|
||||
long style = wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER,
|
||||
const wxString& name = wxDialogNameStr
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue