Página 1 de 1

IDE bug report - losing bitmap on TBtnBmp button

Publicado: Lun Sep 18, 2006 8:26 am
por Gejza Horvath
Hi Jose,
I have a button on the form, the oBitmaps property is set to a BMP file. The form works
well, the bitmap is on the button. I close Xailer. Reopen Xailer with the same project,
display the form and the bitmap is lost, the button is clear, but the source code contains
the information about bitmaps:
From XFM file :
WITH OBJECT ::oUpArrow := TBtnBmp():New( Self )
:SetBounds( 800, 132, 32, 32 )
:cBalloon := "Posunie vybranú polo¾ku nahor"
:nTooltipIcon := tiINFO
:lEnabled := .F.
:oBitmaps := "Uparrow2.bmp"
:OnClick := "UpArrowClick"
:Create()
END
WITH OBJECT ::oDownArrow := TBtnBmp():New( Self )
:SetBounds( 800, 200, 32, 32 )
:cBalloon := "Posunie vybranú polo¾ku nadol"
:nTooltipIcon := tiINFO
:lEnabled := .F.
:oBitmaps := "downarrow.bmp"
:OnClick := "DownArrowClick"
:Create()
END
In this moment, when I change the form, after saving changes, the bitmap setting is
missing from the code:
WITH OBJECT ::oUpArrow := TBtnBmp():New( Self )
:SetBounds( 800, 132, 32, 32 )
:cBalloon := "Posunie vybranú polo¾ku nahor"
:nTooltipIcon := tiINFO
:lEnabled := .F.
:OnClick := "UpArrowClick"
:Create()
END
WITH OBJECT ::oDownArrow := TBtnBmp():New( Self )
:SetBounds( 800, 200, 32, 32 )
:cBalloon := "Posunie vybranú polo¾ku nadol"
:nTooltipIcon := tiINFO
:lEnabled := .F.
:OnClick := "DownArrowClick"
:Create()
END
Please fix this bug.
Gejza Horvath
Slovakia

IDE bug report - losing bitmap on TBtnBmp button

Publicado: Lun Sep 18, 2006 1:08 pm
por jfgimenez
Gejza,
> I have a button on the form, the oBitmaps property is set to a BMP file.
> The form works well, the bitmap is on the button. I close Xailer. Reopen
> Xailer with the same project, display the form and the bitmap is lost, the
> button is clear, but the source code contains the information about
> bitmaps:
I've tested it several times without any problem. Please, send us a sample
and a 'step by step' procedure to reproduce that behavior.
--
Regards,
Jose F. Gimenez
http://www.xailer.com

IDE bug report - losing bitmap on TBtnBmp button

Publicado: Lun Sep 18, 2006 2:38 pm
por Gejza Horvath
Jose,
the whole project directory is attached. Open the project, then select HlavneOkno.prg.
There are 2 affected objects (buttons on the right side of form, now without text and
image) oDownArrow and oUpArrow. Look in to Hlavneokno.xfm line number 162 - 178. No
information about oBitmaps.
Press F12 - the form HlavneOkno is displayed. Select oUpArrow. On Properties tab open
oBitmaps property pressing the "..." button. Click on "Normal", in Load image dialog click
on "..." button near edit field in "From file" group. In Resources directory of this
project select Uparrow2.bmp. Press OK, then on the oBitmaps editor dialog press OK. The
bitmap is shown on the button. Save the file Ctrl-S.
Switch to Hlavneokno.xfm, and reread the file. In line 167 the oBitmaps is set.
Terminate the Xailer. Open this project again. When you display the form, the bitmap on
the button oUpArrow isn't displayed. Make some changes on the form, for ex. move one
button and now compile. Now look in the file Hlavneokno.xfm. The oBitmaps := .... line is
missing.
Regards
Gejza
> I've tested it several times without any problem. Please, send us a sample and a 'step
> by step' procedure to reproduce that behavior.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>

IDE bug report - losing bitmap on TBtnBmp button

Publicado: Lun Sep 18, 2006 5:05 pm
por jfgimenez
Gejza,
You forgot to attach the project
--
Regards,
Jose F. Gimenez
http://www.xailer.com

IDE bug report - losing bitmap on TBtnBmp button

Publicado: Mié Sep 20, 2006 11:37 am
por Gejza Horvath
Hi Jose,
Yes, I forgot the project, but I have problem, can't send mail with attachment. Now I try,
if it is possible without...
Gejza
"Jose F. Gimenez" <jfgimenez@wanadoo.es> pí¹e v diskusním pøíspìvku
news:450eb5b7$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Gejza,
>
> You forgot to attach the project
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>