cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I was just wondering if there was a way that I can set it so that my DataWindows and objects move and resize relative to the application window being resized.

For example I have the following which just has a few data windows and buttons on it.

But if the user resizes the application window, the DataWindows and buttons etc stay static in their fixed position, widths and heights.

Is there a way to make the buttons move and the DataWindows resize relative to the Application Window size?

thanks.

0 Likes
View Entire Topic
Former Member
0 Likes

Yes.  In the window resize event you can code that.


Something basic like:

dw_1.height = this.height * .9

cb_1 = dw_1.X + dw_1.height

etc.  the resize event has parameters newwidth, newheight

You can also use workspaceheight/width

Take a look at the PFC if you want to see some advanced resizing options.