I just searched some windows dlls for useful functions and found some to resize,position and rename the DBP window faster:
DBProWin=Get Dbpro Window()
// Dll Calls
s=timer()
Load Dll "user32.dll",1
Call Dll 1,"SetWindowPos",DBProWin,DBProWin,0,0,500,500,4
Call Dll 1,"SetWindowTextA",DBProWin,"Test1"
Delete Dll 1
print "user32.dll: ";timer()-s
// Standard DBP
s=timer()
set Window Position 100,100
Set Window Size 400,400
Set Window Title "Test2"
print "DBP: ";timer()-s
// matrix1utils
s=timer()
Position Window DBProWin,200,200
Set Window Client Size DBProWin,600,600
Set Window Title "Test3"
print "matrix1utils:";timer()-s
wait key
(u need matrix1utils to get the window handle)
my results:
Windows Dll: 10 - 30 ms (normally 15 )
DBP commands: 60 - 150 ms (normally 100 - 110)
matrix1utils: 40 - 120 ms (normally 90 - 100)
Im wondering why its 10x faster although it even loads and deletes the dll in those 15ms ...