Use ivx achieve the effect of pop Experience

In case we often use some pop to prompt the user for some operations, or show some details information, it can be said to be an essential functional requirements. And pop style is also a wide range of, say today about how to make a pop in his ivx in.
Here Insert Picture Description
A system pop
1. First of all, the system can be used in ivx of pop, we need to select the foreground in the case and then add the system interface components.
Here Insert Picture Description
2. For example, by clicking a button to pop-up window, then click the button to add the event to allow the system to interface pop-up window.
Here Insert Picture Description
Here Insert Picture Description
3. Alternatively, you can choose a small program style, where you can define the content from the title of pop, the Cancel button is displayed (display only effect is to pop a button), and text and color button to confirm and cancel two buttons. Three callbacks are completed in operation, confirm and cancel. Click OK or Cancel is complete triggers, and confirm the corresponding click the OK button, cancel the corresponding cancel button is clicked. We need action can be performed after the callback settings click the button, you need to pay attention a little tool in the confirmation and cancellation just name two buttons, does not mean that the event logic, such as your text to the Cancel button is set to "confirm", and to cancel callback fill in the appropriate actions, then it is the confirm button to perform functions on logic in your case.
Here Insert Picture Description
II. Customizing pop
compared to the system pop, pop freer custom styles and events can be set up, such as the number of buttons, text font, color, and border-radius pop.
Here Insert Picture Description
1. Since the logic is defined pop
custom application scenario according to pop pop pop buttons can be divided without pop and push button, but a banner components are produced, except that only the pop button assembly thus increasing a layer of interaction logic. First of all, it is to a button (demo in DialogBox1, DialogBox2) add a click event to make pop display.
Here Insert Picture Description
Then you can click on the banner mask layer components allow popups hidden again.
Here Insert Picture Description
And there is a button pop can also perform some actions by clicking on a button, or just pop back to re-let to hide.
Here Insert Picture Description
2. No button pop
button-pop pop belonging Alert, with a strong multi error message, a notification informing strong, beginners guide, etc. The system does not require feedback given by the user selection, the user need only use one-way passive receiving system information Scenes. The demo version contains only two components, respectively, show titles and content information.
Here Insert Picture Description
3. The push button pop
Demo, which can also be called confirm pop pop, pop this requires the user to make a choice between the Yes and No, and then again for subsequent interaction according to the Boolean value returned. As the follow-up process is a multi-drop optional, cloud storage process, especially for important secondary confirmation operation behavior, the signing of the agreement, allowing the sensor system calls, such as a reminder to save when you exit the scene.
Here Insert Picture Description
III. Examples
fact custom pop is not difficult to achieve, mainly between the various logical components, for example a here. For example, we click the Delete button to delete a data, the first to see that the delete button just let the pop prompt (below this demo is to create a cycle, so when you click the Delete button will current line number is passed to a first data numeric variables).
Here Insert Picture Description
There are two buttons to confirm and cancel, cancel, or click on the layer mask to hide then let pop, just click on it to confirm delete operation on pop. Also, do not forget that after performing the action and let the pop re-hide
Here Insert Picture Description
summary
pop production itself is not difficult, mainly to do with the self-consistent logical closed, the display needs to be considered from pop to pop Hide and the next show each step in each case between these, these must have the corresponding events and actions and ensure that the next step or return to the previous step, and will not appear halfway card user can not continue to operate in a certain step, logic interrupt occurs. If there is pop in a variety of display state, after we call pop-pop will also have to reset the initial state of operation (or call the bomb in the window on the right popups set), otherwise the first time pop pop normal, but appeared again display an error when attempting to open popups. These cases are also common on other parts of logic that must be considered.

Guess you like

Origin blog.51cto.com/14556317/2479401