05.03.2013 Views

User Guide - NetObjects Fusion

User Guide - NetObjects Fusion

User Guide - NetObjects Fusion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Examples<br />

554<br />

2. Select one of the buttons and create a custom message called HideAllProfiles,<br />

as described in “Tailoring Actions with Custom Messages” on page 542.<br />

Your message becomes<br />

available in the When and<br />

Message menus<br />

3. To each button, add an action, as described in “Adding Actions to Objects and<br />

Pages” on page 535, so clicking the button cascades the HideAllProfiles<br />

message to the Layout.<br />

In the Set Action dialog, enter Mouse, Clicked in the When field; the Layout in<br />

the Target field; and Custom, HideAllProfiles in the Message field. Also, check<br />

the Cascade message option.<br />

4. Add a second action to each button so clicking it targets a Show message to the<br />

text box associated with the button.<br />

In the Set Action dialog, enter Mouse, Clicked in the When field; the text box<br />

this button should display in the Target field; and Object, Show in the Message<br />

field.<br />

5. Select each text box, and on the Actions tab of the Properties panel, clear the<br />

Object initially visible in browser option.<br />

Clear this option for each text box so its<br />

contents don’t appear until the site visitor<br />

clicks the appropriate button<br />

6. Add an action to each text box that’s triggered by the HideAllProfiles message<br />

and hides the text box.<br />

In the Set Action dialog, enter Custom, HideAllProfiles in the When field; the<br />

text box itself in the Target field; and Object, Hide in the Message field.<br />

Then preview the page. Clicking a button should send HideAllProfiles as a<br />

cascading action message to the Layout. The Layout doesn’t have any actions<br />

triggered by this message so it doesn’t respond. But it does cascade the message<br />

down to its embedded objects. As a result, every object on the page receives the<br />

message. But only those objects with actions triggered by the message—the text<br />

boxes—respond by hiding themselves. Next, the button sends a Show message to<br />

its associated text box, which makes itself visible.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!