how to hide texts when changing frame?

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

how to hide texts when changing frame?

Postby AprilSkies » Thu May 10, 2012 9:12 am

My question is about text messages and how to hide them when ghanging frame; I try to explain with an example:

-There is an hotsop that shows a text message if clicked;
-I click the hotspot and the message is shown;
-Suppose I do not click on the message to make it disappear;
- and suppose I don't wait it to disappear (after a certain time) and I change Frame (clicking on another hotsop).

The message don't disappear! I still have it on the screen, even if I am in another frame.

How can I hide messages when changing frames?
AprilSkies
Junior Member
 
Posts: 15
Joined: Fri May 04, 2012 6:05 pm
Location: ITALY

Postby reneuend » Thu May 10, 2012 2:31 pm

How are you hiding and showing the text for the textbox?
Are you setting the caption equal to an empty string to hide the text?
Code: Select all
text(1).caption = ""


and then to display, are you just setting the caption?
Code: Select all
text(1).caption = "this is my message"


From frame where textbox is created:
In your frame properties - advanced tab, set the caption to an empty string as shown above.

From the hotspot that displays the textbox enter the following in the hotspot's advanced tab:

Code: Select all
text(1).caption = "this is my message"


You don't need to do anything else. Just set the text(1) caption to empty string when entering the frame where the textbox is located. And add your message to the hotspot that displays the message.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby ShadowHunter » Thu May 10, 2012 3:39 pm

Hi,

If you are talking about the text that appears at the button on the screen you can use following objetcs. I never tried it and am not sure which of the two you need. But you can find out pretty easy.

MessageObject
MessageCanvasObject

DialogueObject(i)
DialogueCanvasObject

On those objects you can use the normal VB syntax like:

MessageObject.Visible

See the help file of AM for all details.

Good luck,

ShAdOwHuNtEr
Last edited by ShadowHunter on Thu May 10, 2012 11:02 pm, edited 1 time in total.
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium

Postby reneuend » Thu May 10, 2012 4:12 pm

I don't know what text you are talking about ShadowHunter. Is there really some text that carries over to another frame?
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby AprilSkies » Thu May 10, 2012 5:54 pm

Yeah shadowhunter .. exacctly, I mean the text at the bottom (white text on black background) ... it goes on when changing frame
I'll try what u suggest ... let me analyze the help file ...
AprilSkies
Junior Member
 
Posts: 15
Joined: Fri May 04, 2012 6:05 pm
Location: ITALY

Postby reneuend » Thu May 10, 2012 8:18 pm

Here is the code you would add to all of your frame properties - advanced tab. I think its best to just add it where the frame opens instead of adding it to all the hotspots that leave a frame with a message object.

Code: Select all
MessageCanvasObject.Visible = false
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby AprilSkies » Fri May 11, 2012 7:45 am

yeah, ok! it's better than acting on hotspots!
thanka a lot! I'll try!
AprilSkies
Junior Member
 
Posts: 15
Joined: Fri May 04, 2012 6:05 pm
Location: ITALY


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests