Página 1 de 1

Re: TBtnBmp.

Publicado: Mar May 02, 2006 7:59 pm
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

Re: TBtnBmp.

Publicado: Mié May 03, 2006 12:29 pm
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)Â

Re: TBtnBmp.

Publicado: Mié May 03, 2006 12:29 pm
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)Â

Re: TBtnBmp.

Publicado: Mié May 03, 2006 1:06 pm
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
>
>

Re: TBtnBmp.

Publicado: Mié May 03, 2006 1:06 pm
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
>
>