FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Cambiar imagenes en tiempo de ejecuci贸n
Posts: 13
Joined: Wed Jan 23, 2008 11:20 PM
Cambiar imagenes en tiempo de ejecuci贸n
Posted: Fri Oct 03, 2008 02:50 AM

Saludos y disculpen si es muy obvia esta pregunta p q ya tengo rato buscando en estos foros y no encontre nada asi es q o todo mundo sabe o nadie lo ha necesitado, pero yo si necesito saber como cambiar la imagen de un objeto boton BTNBMP o de un BITMAP pero en tiempo de ejecuci贸n. Mi objetivo es cambiar la imagen de uno de esos dos objetos desde un browse para actualizar la imagen de los productos cuando cambien de linea. Gracias

Posts: 13
Joined: Wed Jan 23, 2008 11:20 PM
ups sorry about the languaje I didn't change to the spanishF
Posted: Fri Oct 03, 2008 02:55 AM

Well in case that someone can answer in spanish thanks, if not here is my cuestion in english. I need to change the image of an object ether BTNBMP or BITMAP but in execution time, Some one know how to do it?. That in order to use it from a browse to update the image of the products. Thankx

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: ups sorry about the languaje I didn't change to the span
Posted: Fri Oct 03, 2008 07:48 AM

Use SetFile() method for BTNBMP and LoadImage() method for BITMAP.

EMG

Posts: 13
Joined: Wed Jan 23, 2008 11:20 PM
Enrico thankx
Posted: Fri Oct 03, 2008 09:18 PM

First thankx for quick answer Enrico and give the clue where search cuz my problem was that I din't understand how do reference to the objects but with your help and the samples it done.

cya

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Cambiar imagenes en tiempo de ejecuci贸n
Posted: Fri Oct 03, 2008 10:38 PM
Gab,

In fwppc\samples\Tutor10.prg you could modify it this way:
   @ 1, 1 LISTBOX oBrw ;
      FIELDS If( Customer->Married, hBmp, hBmp2 ), Customer->Last, Customer->First ;
      ...

where hBmp2 is the handle of another bitmap
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Cambiar imagenes en tiempo de ejecuci贸n
Posted: Fri Oct 03, 2008 10:41 PM
If you mean to change the bitmap of a BITMAP object like in fwppc\samples\TestBmp.prg then you could do:
oBmp:LoadBmp( CurDir() + "\another.bmp" )
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion