Code: Select all
OpenWindow(0, 100, 100, 300, 200, "gtk api test")
ResizeWindow(0, 150, 150, #PB_Ignore, #PB_Ignore)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
OpenWindow(0, 100, 100, 300, 200, "gtk api test")
ResizeWindow(0, 150, 150, #PB_Ignore, #PB_Ignore)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
OpenWindow(0, 100, 100, 300, 200, "gtk api test", #PB_Window_Invisible)
ResizeWindow(0, 150, 150, #PB_Ignore, #PB_Ignore)
HideWindow(0, #False)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
If OpenWindow(0, 0, 0, 230, 90, "...", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonGadget (1, 10, 10, 200, 20, "Click me")
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
ResizeWindow(0, Random(500, 100), Random(500, 100), #PB_Ignore, #PB_Ignore)
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
Code: Select all
OpenWindow(0, 100, 100, 300, 200, "gtk api test", #PB_Window_Invisible)
ResizeWindow(0, 150, 150, #PB_Ignore, #PB_Ignore)
HideWindow(0, #False)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
This is the main reason why i stick on 5.31.Fred wrote:I see. The problem is with GTK3, which can't move an hidden window, so it's done when unhiding it. So sometimes you can see the refresh
I think with PB 5.40, we can also use GTK 2 as subsystem. Or is this wrong?uwekel wrote:This is the main reason why i stick on 5.31.Fred wrote:I see. The problem is with GTK3, which can't move an hidden window, so it's done when unhiding it. So sometimes you can see the refresh
Code: Select all
from gi.repository import Gtk
w = Gtk.Window()
w.set_default_size(300, 300)
w.move(200, 200) # move this line after show_all, and you see the same as on PureBasic
w.show_all()
w.connect('destroy', Gtk.main_quit)
Gtk.main()