Wilbert,
you are right of corse about debug mode, but I still had made tests without debug
using
Code: Select all
MessageRequester("time",Str(ElapsedMilliseconds()-millisecond))
to show the result
with longer loops, but I could not get significant differenceces .
Since panelgadget is slow to resize by itself I replaced it with another one, my resize routine was:
Code: Select all
Procedure ResizeGadgetsWindow_0()
storedW.i=WindowWidth(Window_0)
storedH.i=WindowHeight(Window_0)
ResizeGadget(Button_0, storedW - 100, storedH- 30, #PB_Ignore, #PB_Ignore)
ResizeGadget(Button_0_1, storedW - 200, storedH - 30, #PB_Ignore, #PB_Ignore)
ResizeGadget(Tree_0, #PB_Ignore, #PB_Ignore, #PB_Ignore, storedH - 50)
ResizeGadget(Panel_0, #PB_Ignore, #PB_Ignore, storedW - 240, storedH - 50)
; ResizeGadget(Button_0, WindowWidth(Window_0) - 100, WindowHeight(Window_0) - 30, 90, 25)
; ResizeGadget(Button_0_1, WindowWidth(Window_0) - 200, WindowHeight(Window_0) - 30, 90, 25)
; ResizeGadget(Tree_0, 10, 10, 210, WindowHeight(Window_0) - 50)
; ResizeGadget(Panel_0, 230, 10, WindowWidth(Window_0) - 240, WindowHeight(Window_0) - 50)
EndProcedure
I also used #PB_Ignore to replace fixed values, but still I got no real timing differences
( with #PB_Ignore it would be easier to manually make adjustements in the init_window procedure, without the need of copying values in the resize procedure)