Hello
I want to move the content (some widgets) of a window, I already found an example in another forum disccusion which i attached below. I also already looked through the MOTION part of the manuel but my issues couldn't get solved.
What I done so far:
I set the creation flags WM_CF_MOTION_Y (i want to move in y direction as compared to x direction in the example) and I called WM_MOTION_Enable(1).
I think don't get quite what is happening in the callback routine.
The way I think it is working is the following: In the case of WM_MOTION_MOVE we detect the movement and save it in the xPos variable.
Then we update the WM_MOTION_INFO pointer in the case of WM_MOTION_GETPOS, so for what is this pointer update exactly who is going to use this pointer?
I don't want to just draw 4 horizontally alligned rectangles as in the example, sho what exactly should my WM_PAINT case of the callback do?
And when creating the window shouldn't I give it a size larger than my actual screen size (in vertical direction in my case) in order to make it possible to move something?
Kind Regards
Marc
MainTask_WM_MotionMoveContent.zip
I want to move the content (some widgets) of a window, I already found an example in another forum disccusion which i attached below. I also already looked through the MOTION part of the manuel but my issues couldn't get solved.
What I done so far:
I set the creation flags WM_CF_MOTION_Y (i want to move in y direction as compared to x direction in the example) and I called WM_MOTION_Enable(1).
I think don't get quite what is happening in the callback routine.
The way I think it is working is the following: In the case of WM_MOTION_MOVE we detect the movement and save it in the xPos variable.
Then we update the WM_MOTION_INFO pointer in the case of WM_MOTION_GETPOS, so for what is this pointer update exactly who is going to use this pointer?
I don't want to just draw 4 horizontally alligned rectangles as in the example, sho what exactly should my WM_PAINT case of the callback do?
And when creating the window shouldn't I give it a size larger than my actual screen size (in vertical direction in my case) in order to make it possible to move something?
Kind Regards
Marc
MainTask_WM_MotionMoveContent.zip