This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- How to disable Previous or Next button?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2009
11:18 AM
How to disable Previous or Next button?
Hi,
in the Pre-install section I have a panel with a rule.
If the rule is true, I want to display the panel but I would like to disable the Next and Previous button to force the user to cancel.
How is it possible?
Thanks,
X.
in the Pre-install section I have a panel with a rule.
If the rule is true, I want to display the panel but I would like to disable the Next and Previous button to force the user to cancel.
How is it possible?
Thanks,
X.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2009
12:21 PM
You can use a Show Message dialog if a certain rule is true, and with a button which would Cancel and Exit.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2009
11:03 AM
For those who might be interested.
The solution I've found using a CustomCodePanel:
The solution I've found using a CustomCodePanel:
[FONT="Courier New"]
public class MyPanel extends CustomCodePanel
{
[...]
private CustomCodePanelProxy proxy;
public boolean setupUI(CustomCodePanelProxy customCodePanelProxy)
{
[...]
proxy = customCodePanelProxy;
return true;
}
public void panelIsDisplayed()
{
postInitUI(); // should not be called in setupUI
}
private void postInitUI() {
GUIAccess gui = (GUIAccess)proxy.getService(GUIAccess.class);
Frame frame = gui.getFrame();
gui.setExitButtonVisible(true);
gui.setNextButtonVisible(false);
gui.setPreviousButtonVisible(false);
}
[/FONT]
public class MyPanel extends CustomCodePanel
{
[...]
private CustomCodePanelProxy proxy;
public boolean setupUI(CustomCodePanelProxy customCodePanelProxy)
{
[...]
proxy = customCodePanelProxy;
return true;
}
public void panelIsDisplayed()
{
postInitUI(); // should not be called in setupUI
}
private void postInitUI() {
GUIAccess gui = (GUIAccess)proxy.getService(GUIAccess.class);
Frame frame = gui.getFrame();
gui.setExitButtonVisible(true);
gui.setNextButtonVisible(false);
gui.setPreviousButtonVisible(false);
}
[/FONT]
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)