So moving the window turned out to be far more annoying than I thought it would be :roll:
For example just simply doing this will draw the main object tree on the screen in the centre which obviously works fine.
Code: Select all
form_center tree&,x,y,w,h
junk=objc_draw(tree&,0,10,x,y,w,h)
However I get the WM_MOVED event, which I then relocate the window to. Where you can just make out the title bar in the image below has actually move down the screen. However the actual object tree is still drawing in the original place and I have no idea why because it uses the same coordinates as the window for starters :roll:
Capture.PNG
If I remove the objc_draw line you can see the locations are correct with the main window.
2.PNG
So no idea what is going on :cry:
From what I can gather the form_centre might be recalculating the objects XY locations and objc_draw Does not actually draw the objects that the location past in that function :roll:
You do not have the required permissions to view the files attached to this post.