In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Re: TBtnBmp.

Xailer professional forum in English
Responder
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: TBtnBmp.

Mensaje por jfgimenez »

Paulo,
> I have twelve TBtnBmp, that afert select one pacient, i put one BMp.
>
> But only apears 3 and 1/4 of another. See Step_1.JPG
>
> I need to pass the cursor to the BtnBmp for show all the BtnBmp. See
> Step_2.JPG
>
> But when i put the cursor in the BtnBmp, this disapear. See the Step_3.JPG
>
> I make this in the formInitialize!
>
> ::oImageList1:Add(".FicCliR.Bmp")
> Etc.
>
> And this is the Button2Click
>
> ::oBtnBmp1:oBitMaps := ::oImageList1:GetBitMap(1)
The property oBitmaps is itself an imagelist. Also, it's allowed to assign
the image filename directly. Please, try:
::oBtnBmp1:oBitmaps := "FicCliR.bmp"
and so on. If it doesn't work, please, send us a small sample to review (you
could create a new project containing only that form and the needed
bitmaps).
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: TBtnBmp.

Mensaje por jfgimenez »

Paulo,
thanks for the sample. You are right; there was a bug. Here you are the
fixed class; just add the .obj file to your project.
BTW, I suggest 2 issues:
- Put all the bitmaps in a resource file. You only need to show the resource
mannager, create a new .rc file (pressing the new button), and add avery
bitmap file to it. Later, you only need to address the bitmaps by its
resource name (i.e., ".FicCliR.BMp" becomes "FicCliR")
- When all button's images are the same image, just assign the image's name
to the property oBitmaps (i.e. ::oBtnBmp1:oBitMaps := "FicCliR"); Xailer
will resolve the other 3 images.
--
Regards,
Jose F. Gimenez


Attached files btnbmp.zip (2 KB)Â
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: TBtnBmp.

Mensaje por jfgimenez »

Paulo,
thanks for the sample. You are right; there was a bug. Here you are the
fixed class; just add the .obj file to your project.
BTW, I suggest 2 issues:
- Put all the bitmaps in a resource file. You only need to show the resource
mannager, create a new .rc file (pressing the new button), and add avery
bitmap file to it. Later, you only need to address the bitmaps by its
resource name (i.e., ".FicCliR.BMp" becomes "FicCliR")
- When all button's images are the same image, just assign the image's name
to the property oBitmaps (i.e. ::oBtnBmp1:oBitMaps := "FicCliR"); Xailer
will resolve the other 3 images.
--
Regards,
Jose F. Gimenez


Attached files btnbmp.zip (2 KB)Â
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

Re: TBtnBmp.

Mensaje por pjmfelix »

Thanks Jose.
Regards.
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:[email=4458860b@ozsrvnegro.ozlan.local...]4458860b@ozsrvnegro.ozlan.local...[/email]
> Paulo,
>
> thanks for the sample. You are right; there was a bug. Here you are the
> fixed class; just add the .obj file to your project.
>
> BTW, I suggest 2 issues:
>
> - Put all the bitmaps in a resource file. You only need to show the
> resource mannager, create a new .rc file (pressing the new button), and
> add avery bitmap file to it. Later, you only need to address the bitmaps
> by its resource name (i.e., ".FicCliR.BMp" becomes "FicCliR")
>
> - When all button's images are the same image, just assign the image's
> name to the property oBitmaps (i.e. ::oBtnBmp1:oBitMaps := "FicCliR");
> Xailer will resolve the other 3 images.
>
> --
> Regards,
>
> Jose F. Gimenez
>
>
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

Re: TBtnBmp.

Mensaje por pjmfelix »

Thanks Jose.
Regards.
"Jose F. Gimenez" <jfgimenez@wanadoo.es> escreveu na mensagem
news:[email=4458860b@ozsrvnegro.ozlan.local...]4458860b@ozsrvnegro.ozlan.local...[/email]
> Paulo,
>
> thanks for the sample. You are right; there was a bug. Here you are the
> fixed class; just add the .obj file to your project.
>
> BTW, I suggest 2 issues:
>
> - Put all the bitmaps in a resource file. You only need to show the
> resource mannager, create a new .rc file (pressing the new button), and
> add avery bitmap file to it. Later, you only need to address the bitmaps
> by its resource name (i.e., ".FicCliR.BMp" becomes "FicCliR")
>
> - When all button's images are the same image, just assign the image's
> name to the property oBitmaps (i.e. ::oBtnBmp1:oBitMaps := "FicCliR");
> Xailer will resolve the other 3 images.
>
> --
> Regards,
>
> Jose F. Gimenez
>
>
Responder