Resize

Hi alex tengo una pregunta , cuando maximizo una ventana como puedo hacer para que tambien las dw de dicha ventana tambien se maximizen porque maximizo la ventana y las dw se me queden igual.
gracias

1 respuesta

Respuesta
1
Te envio el texto de un archivo fx_resize. Srf, pon esta funcion en el evento resize de la ventana, y le pasas como parametros el dw y el windows...
Saludos
AlexM
////////////////////////////////////////////////////////////////////////////////////////////
$PBExportHeader$fx_resize.srf
global type fx_resize from function_object
end type
forward prototypes
global subroutine fx_resize (ref datawindow ldw_dw, window w)
end prototypes
global subroutine fx_resize (ref datawindow ldw_dw, window w);int alto,ancho,dif_alto
if w.hscrollbar then
dif_alto = w.height - ldw_dw.y - ldw_dw.height - 165
else
dif_alto = w.height - ldw_dw.y - ldw_dw.height - 110
end if
if w.vscrollbar then
ancho = w.width - ldw_dw.x - 100
else
ancho = w.width - ldw_dw.x - 40
end if
ldw_dw.Setredraw(false)
ldw_dw.height = ldw_dw.height + dif_alto
ldw_dw.width = ancho
ldw_dw.Setredraw(true)
end subroutine
////////////////////////////////////////////////////////////////////////////////////////////

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas