Random Options Inlinks Browse Raw Live Wayback Source Home Archives: pcmedia27
http://www.corel.com/clickandcreate/tips/tip1.htm (PC Media Número 27, 1997-02-17)

[Navigation Bar]

Corel Click & Create

Tip 1 - How to Make "Roll-over events"

A roll-over event is an event that occurs when the mouse pointer passes over a particular object or area on the frame while an application is running. Roll-over events are often used to show a description of a button.

For example when you move the mouse pointer over this button in Click & Create, you will see the roll-over text "Save". Roll-overs are fairly easy to create in Click & Create. Here’s an example of how to make text appear when your mouse moves over a particular area on the screen.

The first step in setting up the Roll-over event is adding the text that will be displayed, setting the location and size of the area, and testing for the mouse within the area. When the mouse is over this area the text will be displayed. You can also change this procedure to test for the mouse over a particular object rather than a zone.

 

  1. In the Frame editor, add a text object to the frame. Type some text, make sure you choose a text color that is different from the backdrop, and click OK.

  2. Click the text object with the right mouse button and choose Make invisible from the pop-up menu.

  3. Click the Event editor button on the toolbar.

  4. In the Event editor, click the New Condition line at the bottom of the event list.

  5. Double click the Mouse pointer and keyboard icon and choose The mouse, Check for mouse pointer in a zone from the pop-up menu. The Zone Setup dialog box allows you to enter coordinates for the desired zone and drag the resizing handles of the area to resize the zone. For the purposes of this example, enter any zone you want.

  6. Click OK once you’ve positioned and resized the zone.

It is necessary to set up two conditions in the Event Editor. One to test when the mouse is within the specified zone and the other to test when the mouse is not within that zone. The easiest way to do this in Click & Create is to copy the first condition.

  1. Click the reference number to the left of the first condition so that the whole line is highlighted.

  2. Click Edit, copy.

  3. Click edit, paste and click the first condition in the Event Editor list.

You should now have two identical conditions in the Event Editor. Now, you need to add the associated actions:

  1. Locate the intersection of the first condition on the left and the Text object icon on the top. Click this empty box with the right mouse button.

  2. Choose Display Text from the pop-up menu. Drag the cross-hairs box to the location you want the text object to appear or click the playfield to the mouse to move that cross-hairs to that position.

  3. Click OK to accept the position.

If you run this frame after completing these steps, when the mouse moves over the specified area, the text will appear. Now, to make the text disappear when the mouse pointer is not over the specified area.

  1. In the Event Editor, click the second condition and choose Negate from the pop-up menu. Negate will add a red X to the start of the condition (Negate functions like a logical NOT).

  2. Locate the intersection of the second condition on the left and the Text object icon on the top. Click this empty box with the right mouse button.

  3. Choose Erase Text from the pop-up menu.

Now when you run this frame, the text will appear when the mouse pointer is over the specified area, and will disappear when the text is not over that area.

[Click here
for the next tip]

SEARCH

Click & Create

 


created with Corel WEB.DESIGNEROther useful links:
|
Copyright Information |