Control Image

Moderator: Rathinagiri

Post Reply
Mario Mansilla
Posts: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Control Image

Post 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
Attachments
Image.rar
(55.28 KiB) Downloaded 300 times
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Control Image

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Control Image

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Control Image

Post by danielmaximiliano »

Pablo : necesitaria que cambies este post a lugar ya que no es un BUG del control IMAGE

gracias
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Mario Mansilla
Posts: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: Control Image

Post 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
Post Reply