Estoy tratando de adecuar el tamaño de una imagen de acuerdo a si MAXIMIZAN o RESTAURAN una ventana.
I'm trying to adjust the image size according to whether MAXIMIZE or RESTORE a window.
Code: Select all
DEFINE WINDOW win_1 AT 0 , 0 WIDTH 324 HEIGHT 300 TITLE "Prueba" CHILD NOSIZE TOPMOST ;
ON MAXIMIZE ( win_1.Image_1.Width := 1024, win_1.Image_1.Height := 768 ) ;
ON MINIMIZE ( win_1.Image_1.Width := 324, win_1.Image_1.Height := 300 )
If minimized, is OK, but I have to manually MAXIMIZE ...
Necesito un comando que haga esto:
I need a command that does this:
ON RESTORE ( win_1.Image_1.Width := 324, win_1.Image_1.Height := 300 )
Alguien tiene una idea de como hacerlo ?
Anyone have an idea how to do?