Added a border around dialogs. Has anyone got a better solution?

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-11-03 15:53:18 +00:00
parent ce7f10f2a6
commit cb81efcd84
2 changed files with 16 additions and 0 deletions

View File

@@ -128,6 +128,14 @@ gtk_dialog_realized_callback( GtkWidget *widget, wxDialog *win )
long decor = (long) GDK_DECOR_BORDER; long decor = (long) GDK_DECOR_BORDER;
long func = (long) GDK_FUNC_MOVE ; long func = (long) GDK_FUNC_MOVE ;
/* Some WM don't display any border around the frame contents if
used with these hints, so we add a resize border around it,
without automatically allowinng it to be resized though.
This avoids the problem, but looks odd. What shall we do?
*/
decor |= GDK_DECOR_RESIZEH;
if ((win->GetWindowStyle() & wxCAPTION) != 0) if ((win->GetWindowStyle() & wxCAPTION) != 0)
decor |= GDK_DECOR_TITLE; decor |= GDK_DECOR_TITLE;
if ((win->GetWindowStyle() & wxSYSTEM_MENU) != 0) if ((win->GetWindowStyle() & wxSYSTEM_MENU) != 0)

View File

@@ -128,6 +128,14 @@ gtk_dialog_realized_callback( GtkWidget *widget, wxDialog *win )
long decor = (long) GDK_DECOR_BORDER; long decor = (long) GDK_DECOR_BORDER;
long func = (long) GDK_FUNC_MOVE ; long func = (long) GDK_FUNC_MOVE ;
/* Some WM don't display any border around the frame contents if
used with these hints, so we add a resize border around it,
without automatically allowinng it to be resized though.
This avoids the problem, but looks odd. What shall we do?
*/
decor |= GDK_DECOR_RESIZEH;
if ((win->GetWindowStyle() & wxCAPTION) != 0) if ((win->GetWindowStyle() & wxCAPTION) != 0)
decor |= GDK_DECOR_TITLE; decor |= GDK_DECOR_TITLE;
if ((win->GetWindowStyle() & wxSYSTEM_MENU) != 0) if ((win->GetWindowStyle() & wxSYSTEM_MENU) != 0)