I can’t make it invisible because the canvas is over the top of a Text Area, and if I simply set it to invisible - the user is not able to select any text in the underlying Text Area.
[quote=85639:@Richard Summers]I can’t make it invisible because the canvas is over the top of a Text Area, and if I simply set it to invisible - the user is not able to select any text in the underlying Text Area.
[/quote]
The problem seems to be that I use the code below to fade out the Canvas containing the image, and if I make the canvas visible - it is still transparent.
If that makes sense
[code] If CueImageSeen = false then
Dim p as Picture
dim h, w, i as integer
w = Canvas1.Width
h = Canvas1.Height
p = new picture(w,h)
p = Canvas1.Backdrop
p.Graphics.ForeColor = RGB(255,255,255)
if FadeColor <255 then
fadeColor = fadecolor + 10
p.mask.graphics.forecolor=rgb(fadecolor,fadecolor,fadecolor)
p.mask.graphics.fillrect (0,0,w,h)
p.Graphics.DrawPicture fadetext,0,0
canvas1.Backdrop = p
else
Canvas1.close
Timer2.mode = 0
CueImageSeen = true
end if
Dave - that is perfect for future reference, and I will definitely use that at some stage.
However, because my TextArea is so large, the text would seem a little lost - therefore I made a large image which looks really nice (if only I could get it to appear again).
[quote=85666:@Richard Summers]The problem seems to be that I use the code below to fade out the Canvas containing the image, and if I make the canvas visible - it is still transparent.
[/quote]
Sure - it retains its settings
So when you show new cue text you’ll have to set the transparency etc back to how you want it to appear as cue text
And then fade it out
A custom canvas subclass that has something like a “Show” method that takes a text message to show and it then sets up things so they show how you want the text to show
And you could even encapsulate a timer or whatever in that so it fades when clicked
??
Do you mean that the modified code below would make it opaque again?
[code]Dim p as Picture
dim h, w, i as integer
w = Canvas1.Width
h = Canvas1.Height
p = new picture(w,h)
p = Canvas1.Backdrop
p.Graphics.ForeColor = RGB(0,0,0)
p.mask.graphics.forecolor=rgb(0,0,0)
p.mask.graphics.fillrect (0,0,w,h)
p.Graphics.DrawPicture fadetext,0,0
Canvas1.Backdrop = p[/code]