Page 1 of 1
Control Image
Posted: Sun Feb 02, 2014 2:30 pm
by Mario Mansilla
Hola :
Tengo dudas con el control image :
Label_1a : porque no me carga la imagen desde el archivo de recursos
Label_1b , Label_2 , Label_3 : como puedo modificar el color de fondo de la imagen .
Uso Hmg3.2 , Ide 1.0.3b, Winxp sp2
Saludos .
Mario Mansilla
Hello:
I doubt the image check:
Label_1a: because I did not load the image from the resource file
Label_1b, Label_2, Label_3: how can I change the background color of the image.
Use Hmg3.2, Ide 1.0.3b, Winxp sp2
Greetings.
Mario Mansilla
Re: Control Image
Posted: Sun Feb 02, 2014 2:51 pm
by danielmaximiliano
Hola :
el control IMGE dice
Displays images in formats: BMP, GIF, JPG, TIF, WMF, CUR and PNG.
tu archivo de recurso estas indicando
Code: Select all
Accesobmp BITMAP Acceso.bmp
Accesoico ICON Acceso.ico
Accesopng PNG Acceso.png
en el FORM
Code: Select all
DEFINE IMAGE Image_1
ROW 30
COL 60
WIDTH 40
HEIGHT 40
PICTURE "Accesoico"
HELPID Nil
VISIBLE .T.
STRETCH .F.
ACTION Nil
END IMAGE
no puedes cargar en el control IMAGE un .ICO
Re: Control Image
Posted: Sun Feb 02, 2014 2:53 pm
by danielmaximiliano
para los demas tienes que leer sobre el control IMAGE
Note:
- If WIDTH is Zero the image is displayed with the Width of the original image, for default is zero.
- If HEIGHT is Zero the image is displayed with the Height of the original image, for default is zero.
- STRETCH: the Width/Height of the image is adjusted exactly at the Width/Height of the Image Control.
- TRANSPARENT: sets the color of the first pixel (col=0, row=0) of the image to treat as transparent in the image.
- BACKGROUNDCOLOR: sets the color of the Background image in anBackgroundColor, for default is the color COLOR_BTNFACE.
- ADJUSTIMAGE: the WIDTH/HEIGHT ratio of the Image Control is adjusted exactly at the Width/Height ratio of the image.
- TRANSPARENTCOLOR: sets the color anTransparentColor to treat as transparent in the image, for default is the color of the first pixel of the image.
nunca eh testeado estas propiedades posiblemente el amigo C.Soto te de mas data.
Re: Control Image
Posted: Sun Feb 02, 2014 3:03 pm
by danielmaximiliano
Pablo : necesitaria que cambies este post a lugar ya que no es un BUG del control IMAGE
gracias
Re: Control Image
Posted: Sun Feb 02, 2014 3:12 pm
by Mario Mansilla
Hola Daniel :
muchas gracias , no habia visto los tipos de imagenes que puedo cargar en el control .
Por lo demás esperaré que Claudio me pueda ayudar , he visto pantallas que han logrado esto que necesito pero no se si lo hicieron con las propiedades del control o directamente modificando la imagen con un editor de imagenes .
Saludos
Mario Mansilla