form.resizemode

beasscript-logo-small

 

Define the resize process in a beas form for all components

 

c         Send event to "formevent resize"

u         Send function "resize" to declared objects

f         Start function "reset()"

[empty] automatic mode, only with dw_1 (= default)

 

is_resizemode sys_resize

 

Example: Make own Resize function with dw_1 and dw_2

form.resizemode=f
 
global function resize
dw_1.x=min
dw_1.y=min
dw_1.width=max
setvar=e_height=%dif(<form.client.height>,2)
dw_1.height=<e_height>
dw_2.x=min
setvar=e_ypos=%sub(<e_height>,10)
setvar=e_height=%sub(<e_height>,40)
dw_2.width=max
dw_2.height=<e_height>
dw_2.y=<e_ypos>
dw_2.visible=true
end global