Designer: You can place the window at any location in the Designer. To move the window while your application is running, call wn_mv(), described below.
Code: You can move a window to a new location on the screen with the window move function, wn_mv():
|
||
|
|
|
|
|
|
|
|
|
You can call wn_mv() whether the window is on the screen or not. If you call wn_mv() for a window that is not displayed on the screen, the values of the window row begin and column begin members are changed in the window structure. When you later display the window with wn_up(), the window will be located at the coordinates specified in the wn_mv() call.
When you call wn_mv() for a displayed window, the values of the window row begin and column begin members are changed in the window structure, and the window is redisplayed at the new location.
If you want to move the window to a new location and change its size at the same time, use wn_mod().