Переглянути джерело

Fix: SetShape() for GTK to make windows move- and resizable (#67)

Ronny Otto 2 роки тому
батько
коміт
c8b0edf7c5
1 змінених файлів з 10 додано та 0 видалено
  1. 10 0
      gtk3maxgui.mod/gtkgadget.bmx

+ 10 - 0
gtk3maxgui.mod/gtkgadget.bmx

@@ -810,6 +810,16 @@ Type TGTKWindow Extends TGTKContainer
 			ignoreSizeEvent = True
 		End If
 		Super.SetShape(Max(x, 0), Max(y, 0), w, h)
+
+		'actually move/resize
+		'using the ignore* saves from backupping old position
+		'and sizes before calling "SetShape()"
+		If ignoreMoveEvent Then
+			gtk_window_move(handle, x, y)
+		End If
+		If ignoreSizeEvent Then
+			gtk_window_resize(handle, w, h)
+		End If
 	End Method
 
 	Rem