Página 1 de 1

TBtnBmp strange behaviour

Publicado: Mar Oct 04, 2005 6:27 pm
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

TBtnBmp strange behaviour

Publicado: Mar Oct 04, 2005 6:33 pm
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

TBtnBmp strange behaviour

Publicado: Mar Oct 04, 2005 6:33 pm
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

TBtnBmp strange behaviour

Publicado: Mar Oct 04, 2005 6:38 pm
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

TBtnBmp strange behaviour

Publicado: Mar Oct 04, 2005 6:38 pm
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

TBtnBmp strange behaviour

Publicado: Mar Oct 04, 2005 6:45 pm
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

TBtnBmp strange behaviour

Publicado: Mar Oct 04, 2005 6:45 pm
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

TBtnBmp strange behaviour

Publicado: Mié Oct 05, 2005 11:27 am
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)Â

TBtnBmp strange behaviour

Publicado: Mié Oct 05, 2005 11:27 am
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)Â

TBtnBmp strange behaviour

Publicado: Mié Oct 05, 2005 1:51 pm
por jfgimenez
Guiseppe,
> It WORKS !!!!
Great! Then we are almost ready for PR5a
> What a wonderful support !
Thanks ;-)
--
Regards,
Jose F. Gimenez

TBtnBmp strange behaviour

Publicado: Mié Oct 05, 2005 1:51 pm
por jfgimenez
Guiseppe,
> It WORKS !!!!
Great! Then we are almost ready for PR5a
> What a wonderful support !
Thanks ;-)
--
Regards,
Jose F. Gimenez

TBtnBmp strange behaviour

Publicado: Mié Oct 05, 2005 1:51 pm
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

TBtnBmp strange behaviour

Publicado: Mié Oct 05, 2005 1:51 pm
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

TBtnBmp strange behaviour

Publicado: Jue Oct 06, 2005 3:53 pm
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

TBtnBmp strange behaviour

Publicado: Jue Oct 06, 2005 3:53 pm
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

TBtnBmp strange behaviour

Publicado: Jue Oct 06, 2005 4:46 pm
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

TBtnBmp strange behaviour

Publicado: Jue Oct 06, 2005 4:46 pm
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

TBtnBmp strange behaviour

Publicado: Jue Oct 06, 2005 5:48 pm
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

TBtnBmp strange behaviour

Publicado: Jue Oct 06, 2005 5:48 pm
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