oooh thats so easy i bet even u could make it in C++
just take a look at the win32api
u cna do it from dbp though with user32.dll
and i cant find the function to get the position of the window but i know it is out there
and my tpc that i made contains a center window function(centers the window with the desktop) just request it and i will attach it
load dll "user32.dll"
function setwindowpos(x,y,width,height)
tmp as dword
tmp=call dll(1,"GetActiveWindow")
trash=call dll(1,"SetWindowPos",tmp,0,x,y,wdith,height,0)
endfunction
Win32api entries
BOOL SetWindowPos(
HWND hWnd, // handle of window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning flags
);
formerly shadows of emptiness