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.

IDE bug report - losing bitmap on TBtnBmp button

Xailer English public forum
Responder
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

IDE bug report - losing bitmap on TBtnBmp button

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

IDE bug report - losing bitmap on TBtnBmp button

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

IDE bug report - losing bitmap on TBtnBmp button

Mensaje 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
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

IDE bug report - losing bitmap on TBtnBmp button

Mensaje por jfgimenez »

Gejza,
You forgot to attach the project
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

IDE bug report - losing bitmap on TBtnBmp button

Mensaje 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
>
Responder