Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6449 > unrolled thread

Trouble with Fixedtext on top of a bitmap

Started byFabio Romling Rotheia <fabio@kosmosdistribuidora.com.br>
First post2013-12-26 11:02 -0800
Last post2014-01-15 06:16 -0800
Articles 6 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Trouble with Fixedtext on top of a bitmap Fabio Romling Rotheia <fabio@kosmosdistribuidora.com.br> - 2013-12-26 11:02 -0800
    Re: Trouble with Fixedtext on top of a bitmap "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2014-01-01 22:04 +0100
      Re: Trouble with Fixedtext on top of a bitmap Fabio Romling Rotheia <fabio@kosmosdistribuidora.com.br> - 2014-01-03 10:16 -0800
        Re: Trouble with Fixedtext on top of a bitmap "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2014-01-03 20:54 +0100
        Re: Trouble with Fixedtext on top of a bitmap Mathias <mathias.hakansson@consultec.se> - 2014-01-07 23:59 -0800
          Re: Trouble with Fixedtext on top of a bitmap Fabio Romling Rotheia <fabio@kosmosdistribuidora.com.br> - 2014-01-15 06:16 -0800

#6449 — Trouble with Fixedtext on top of a bitmap

FromFabio Romling Rotheia <fabio@kosmosdistribuidora.com.br>
Date2013-12-26 11:02 -0800
SubjectTrouble with Fixedtext on top of a bitmap
Message-ID<e7beff23-098d-4300-90e4-3e9f340f3dc5@googlegroups.com>
Hello there!

I'm having trouble changing the caption of a dynamic FixedText Control that is displayed on top of a bitmap. When I change it, it displays on top of the other caption, showing both.

Here is part of my code:

aFTObjects holds the Fixedtext, created at runtime.

		aFTObjects[i]:Hide()
		aFTObjects[i]:caption := "This is a test"
		aFTObjects[i]:BackGround := Brush{BRUSHHOLLOW}
		aFTObjects[i]:Show()

		aFTObjects[i]:Hide()
		aFTObjects[i]:caption := "This is another test"
		aFTObjects[i]:BackGround := Brush{BRUSHHOLLOW}
		aFTObjects[i]:Show()

When i run this code, both FT are displayed on the screen, one on top of the other.

Can anyone help me on this?

Best regards,
Fábio.

[toc] | [next] | [standalone]


#6453

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2014-01-01 22:04 +0100
Message-ID<bije8kFhgp4U1@mid.individual.net>
In reply to#6449
Hello Fabio,

Go to  www.voug-bodensee.net/Zip-Download/Test.zip , there you will find a 
sample that works here.

Good luck!
Urs


"Fabio Romling Rotheia" <fabio@kosmosdistribuidora.com.br> schrieb im 
Newsbeitrag news:e7beff23-098d-4300-90e4-3e9f340f3dc5@googlegroups.com...
Hello there!

I'm having trouble changing the caption of a dynamic FixedText Control that 
is displayed on top of a bitmap. When I change it, it displays on top of the 
other caption, showing both.

Here is part of my code:

aFTObjects holds the Fixedtext, created at runtime.

aFTObjects[i]:Hide()
aFTObjects[i]:caption := "This is a test"
aFTObjects[i]:BackGround := Brush{BRUSHHOLLOW}
aFTObjects[i]:Show()

aFTObjects[i]:Hide()
aFTObjects[i]:caption := "This is another test"
aFTObjects[i]:BackGround := Brush{BRUSHHOLLOW}
aFTObjects[i]:Show()

When i run this code, both FT are displayed on the screen, one on top of the 
other.

Can anyone help me on this?

Best regards,
Fábio. 

[toc] | [prev] | [next] | [standalone]


#6454

FromFabio Romling Rotheia <fabio@kosmosdistribuidora.com.br>
Date2014-01-03 10:16 -0800
Message-ID<bc0c34cf-1e93-4d1c-9f7d-176f69be343d@googlegroups.com>
In reply to#6453
Hello Urs,

Happy 2014!

I saw your code and that's not what i'm looking for.
Over there you have 2 Fixed Texts, hide one and show the other.
In my code, I create the Fixed Texts at runtime and the problem arises when i change the caption. 
I cannot hide, because it's the same FT, stored on an array.

Thanks a lot, anyway!

Best regards,
Fábio.


Em quarta-feira, 1 de janeiro de 2014 19h04min56s UTC-2, Urs Eggmann  escreveu:
> Hello Fabio,
> 
> 
> 
> Go to  www.voug-bodensee.net/Zip-Download/Test.zip , there you will find a 
> 
> sample that works here.
> 
> 
> 
> Good luck!
> 
> Urs
> 

[toc] | [prev] | [next] | [standalone]


#6455

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2014-01-03 20:54 +0100
Message-ID<biois7Fk678U1@mid.individual.net>
In reply to#6454

[Multipart message — attachments visible in raw view] — view raw

Hi Fabio,

Have a look to the new code:

The FixedText is created by a method "pbCreateAtRuntime", I call with the 
appropriate button on my window.
Then I can change the caption with no problem, as long I do not create the 
control again. Then I get the effect of more than one visivle Caption. let's 
say more than one visible control. Is somewhere in your code a multiple 
creation of the control?
Code of the new module in the attached file

Regards ans also my best wishes for 2014
Urs



"Fabio Romling Rotheia" <fabio@kosmosdistribuidora.com.br> schrieb im 
Newsbeitrag news:bc0c34cf-1e93-4d1c-9f7d-176f69be343d@googlegroups.com...
Hello Urs,

Happy 2014!

I saw your code and that's not what i'm looking for.
Over there you have 2 Fixed Texts, hide one and show the other.
In my code, I create the Fixed Texts at runtime and the problem arises when 
i change the caption.
I cannot hide, because it's the same FT, stored on an array.

Thanks a lot, anyway!

Best regards,
Fábio.


Em quarta-feira, 1 de janeiro de 2014 19h04min56s UTC-2, Urs Eggmann 
escreveu:
> Hello Fabio,
>
>
>
> Go to  www.voug-bodensee.net/Zip-Download/Test.zip , there you will find a
>
> sample that works here.
>
>
>
> Good luck!
>
> Urs
> 

[toc] | [prev] | [next] | [standalone]


#6462

FromMathias <mathias.hakansson@consultec.se>
Date2014-01-07 23:59 -0800
Message-ID<b3d350ba-faab-42e6-bfdf-8b85cb0271ae@googlegroups.com>
In reply to#6454
You could try redrawing the bitmap Control after the text change.

/Mathias

Den fredagen den 3:e januari 2014 kl. 19:16:55 UTC+1 skrev Fabio Romling Rotheia:
> Hello Urs,
> 
> 
> 
> Happy 2014!
> 
> 
> 
> I saw your code and that's not what i'm looking for.
> 
> Over there you have 2 Fixed Texts, hide one and show the other.
> 
> In my code, I create the Fixed Texts at runtime and the problem arises when i change the caption. 
> 
> I cannot hide, because it's the same FT, stored on an array.
> 
> 
> 
> Thanks a lot, anyway!
> 
> 
> 
> Best regards,
> 
> Fábio.
> 
> 
> 
> 
> 
> Em quarta-feira, 1 de janeiro de 2014 19h04min56s UTC-2, Urs Eggmann  escreveu:
> 
> > Hello Fabio,
> 
> > 
> 
> > 
> 
> > 
> 
> > Go to  www.voug-bodensee.net/Zip-Download/Test.zip , there you will find a 
> 
> > 
> 
> > sample that works here.
> 
> > 
> 
> > 
> 
> > 
> 
> > Good luck!
> 
> > 
> 
> > Urs
> 
> >

[toc] | [prev] | [next] | [standalone]


#6497

FromFabio Romling Rotheia <fabio@kosmosdistribuidora.com.br>
Date2014-01-15 06:16 -0800
Message-ID<4de9382e-858b-4722-b3e7-8a1752298d81@googlegroups.com>
In reply to#6462
Hello Mathias!

Thank you for your reply, but I found another solution and it's working very well.
Instead of Fixedtext, i'm using the API function DrawText to display text over a bitmap.

Best regards,
Fábio.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web