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.

TBtnBmp strange behaviour

Xailer professional forum in English
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

Hi,
I have several TBtnBmp in my app. I've noticed that:
- when the button is in its pressed state the bitmap is not shown.
- when I click a button the bitmap is shown only when the mouse pointer is
moved out of the button area.
I initialize every button with a line of code like this:
::oBtnHlpEdit:SetBitmaps( { "BMP_EDIT16", "BMP_EDIT16_H", "BMP_EDIT16", "BMP_EDIT16_D" } )
Is it correct ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Giuseppe,
> I have several TBtnBmp in my app. I've noticed that:
>
> - when the button is in its pressed state the bitmap is not shown.
>
> - when I click a button the bitmap is shown only when the mouse pointer is
> moved out of the button area.
>
> I initialize every button with a line of code like this:
> ::oBtnHlpEdit:SetBitmaps( { "BMP_EDIT16", "BMP_EDIT16_H", "BMP_EDIT16",
> "BMP_EDIT16_D" } )
>
> Is it correct ?
Yes, it is. But be sure that all bitmaps have exactly the same size.
ITOH, what OS are you using? Are you using XP themes?
--
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:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Giuseppe,
> I have several TBtnBmp in my app. I've noticed that:
>
> - when the button is in its pressed state the bitmap is not shown.
>
> - when I click a button the bitmap is shown only when the mouse pointer is
> moved out of the button area.
>
> I initialize every button with a line of code like this:
> ::oBtnHlpEdit:SetBitmaps( { "BMP_EDIT16", "BMP_EDIT16_H", "BMP_EDIT16",
> "BMP_EDIT16_D" } )
>
> Is it correct ?
Yes, it is. But be sure that all bitmaps have exactly the same size.
ITOH, what OS are you using? Are you using XP themes?
--
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:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Giuseppe,
>> ITOH, what OS are you using? Are you using XP themes?
> Windows 2000 Service Pack 4 with all upgrades from Windows Update
Ok, thanks. I'm going to test it on that OS and I'll tell you.
--
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:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Giuseppe,
>> ITOH, what OS are you using? Are you using XP themes?
> Windows 2000 Service Pack 4 with all upgrades from Windows Update
Ok, thanks. I'm going to test it on that OS and I'll tell you.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 4 Oct 2005 18:33:15 +0200, Jose F. Gimenez ha scritto:
> Giuseppe,
>
>> I have several TBtnBmp in my app. I've noticed that:
>>
>> - when the button is in its pressed state the bitmap is not shown.
>>
>> - when I click a button the bitmap is shown only when the mouse pointer is
>> moved out of the button area.
>>
>> I initialize every button with a line of code like this:
>>::oBtnHlpEdit:SetBitmaps( { "BMP_EDIT16", "BMP_EDIT16_H", "BMP_EDIT16",
>> "BMP_EDIT16_D" } )
>>
>> Is it correct ?
>
> Yes, it is. But be sure that all bitmaps have exactly the same size.
>
All the bitmaps are 16x16 pixels
> ITOH, what OS are you using? Are you using XP themes?
Windows 2000 Service Pack 4 with all upgrades from Windows Update
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 4 Oct 2005 18:33:15 +0200, Jose F. Gimenez ha scritto:
> Giuseppe,
>
>> I have several TBtnBmp in my app. I've noticed that:
>>
>> - when the button is in its pressed state the bitmap is not shown.
>>
>> - when I click a button the bitmap is shown only when the mouse pointer is
>> moved out of the button area.
>>
>> I initialize every button with a line of code like this:
>>::oBtnHlpEdit:SetBitmaps( { "BMP_EDIT16", "BMP_EDIT16_H", "BMP_EDIT16",
>> "BMP_EDIT16_D" } )
>>
>> Is it correct ?
>
> Yes, it is. But be sure that all bitmaps have exactly the same size.
>
All the bitmaps are 16x16 pixels
> ITOH, what OS are you using? Are you using XP themes?
Windows 2000 Service Pack 4 with all upgrades from Windows Update
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Giuseppe,
Fixed!
Please, add the attached file to your project and check it again. And
please, tell me if it works.
--
Regards,
Jose F. Gimenez


Attached files BtnBmp.zip (2.1 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:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Giuseppe,
Fixed!
Please, add the attached file to your project and check it again. And
please, tell me if it works.
--
Regards,
Jose F. Gimenez


Attached files BtnBmp.zip (2.1 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:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Guiseppe,
> It WORKS !!!!
Great! Then we are almost ready for PR5a
> What a wonderful support !
Thanks ;-)
--
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:

TBtnBmp strange behaviour

Mensaje por jfgimenez »

Guiseppe,
> It WORKS !!!!
Great! Then we are almost ready for PR5a
> What a wonderful support !
Thanks ;-)
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Wed, 5 Oct 2005 11:27:41 +0200, Jose F. Gimenez ha scritto:
> Giuseppe,
>
> Fixed!
>
> Please, add the attached file to your project and check it again. And
> please, tell me if it works.
It WORKS !!!!
What a wonderful support !
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Wed, 5 Oct 2005 11:27:41 +0200, Jose F. Gimenez ha scritto:
> Giuseppe,
>
> Fixed!
>
> Please, add the attached file to your project and check it again. And
> please, tell me if it works.
It WORKS !!!!
What a wonderful support !
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 4 Oct 2005 18:27:00 +0200, Giuseppe Bogetti ha scritto:
Another strange thing.
If I initialize button images in the IDE and than execute the :SetBitmaps()
method in code no more images are shown in the button.
I've come along this because I've finally discovered the Image editor in
the IDE but I lost old code that initialize images of buttons.
Xailer IDE becomes every day better !!!!
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Tue, 4 Oct 2005 18:27:00 +0200, Giuseppe Bogetti ha scritto:
Another strange thing.
If I initialize button images in the IDE and than execute the :SetBitmaps()
method in code no more images are shown in the button.
I've come along this because I've finally discovered the Image editor in
the IDE but I lost old code that initialize images of buttons.
Xailer IDE becomes every day better !!!!
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TBtnBmp strange behaviour

Mensaje por ignacio »

Giuseppe,
Wich kind of parameters are you passing to SetBitmaps(). It accepts 1 to 3
dimensions array or a resouce name. BTW take care that SetBitmaps() releases
any other bitmap included in advance. Please send a little sample. Thanks in
advance.
Regards,
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:1ozq0s97ye8nx$.wn8f5bthr1yz$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> In data Tue, 4 Oct 2005 18:27:00 +0200, Giuseppe Bogetti ha scritto:
>
> Another strange thing.
>
> If I initialize button images in the IDE and than execute the
> :SetBitmaps()
> method in code no more images are shown in the button.
>
> I've come along this because I've finally discovered the Image editor in
> the IDE but I lost old code that initialize images of buttons.
>
> Xailer IDE becomes every day better !!!!
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
InvalidAccount
Mensajes: 53
Registrado: Vie Mar 04, 2005 9:58 am

TBtnBmp strange behaviour

Mensaje por InvalidAccount »

Giuseppe,
Wich kind of parameters are you passing to SetBitmaps(). It accepts 1 to 3
dimensions array or a resouce name. BTW take care that SetBitmaps() releases
any other bitmap included in advance. Please send a little sample. Thanks in
advance.
Regards,
"Giuseppe Bogetti" <orangesocks@bgsoft.it> escribió en el mensaje
news:1ozq0s97ye8nx$.wn8f5bthr1yz$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> In data Tue, 4 Oct 2005 18:27:00 +0200, Giuseppe Bogetti ha scritto:
>
> Another strange thing.
>
> If I initialize button images in the IDE and than execute the
> :SetBitmaps()
> method in code no more images are shown in the button.
>
> I've come along this because I've finally discovered the Image editor in
> the IDE but I lost old code that initialize images of buttons.
>
> Xailer IDE becomes every day better !!!!
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Thu, 6 Oct 2005 16:46:50 +0200, Ignacio Ortiz de Zúñiga ha scritto:
> Giuseppe,
>
> Wich kind of parameters are you passing to SetBitmaps(). It accepts 1 to 3
> dimensions array or a resouce name. BTW take care that SetBitmaps() releases
> any other bitmap included in advance. Please send a little sample. Thanks in
> advance.
>
> Regards,
>
Ignacio,
seems like there was something wrong in my .objs, because now everything
works OK.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

TBtnBmp strange behaviour

Mensaje por Giuseppe Bogetti »

In data Thu, 6 Oct 2005 16:46:50 +0200, Ignacio Ortiz de Zúñiga ha scritto:
> Giuseppe,
>
> Wich kind of parameters are you passing to SetBitmaps(). It accepts 1 to 3
> dimensions array or a resouce name. BTW take care that SetBitmaps() releases
> any other bitmap included in advance. Please send a little sample. Thanks in
> advance.
>
> Regards,
>
Ignacio,
seems like there was something wrong in my .objs, because now everything
works OK.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Responder