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
- :
- InstallShield
- :
- InstallShield Forum
- :
- code
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 16, 2006
11:00 AM
How to set BrowseControl (in)visible when checked a CheckBox ?
Hi,
I want to set a BrowseControl visible when a Checkbox is checked and set invisible when the checkbox is unchecked. How can I do this ?
Timo
I want to set a BrowseControl visible when a Checkbox is checked and set invisible when the checkbox is unchecked. How can I do this ?
Timo
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2006
11:17 AM
Hi,
You implement the checked method of the checkbox, and inside you disable/enable the browse control.
I did the same with browse control and radio buttons (If one was selected, the browse control was enables, and the opposite.
Eyal
You implement the checked method of the checkbox, and inside you disable/enable the browse control.
I did the same with browse control and radio buttons (If one was selected, the browse control was enables, and the opposite.
Eyal
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2006
03:28 AM
This is the way I want to do it.
But how can I get the BrowseControl to set visible/invisble ?
ISControlContext does not have a getISPanel() method and I don't know how to
get a panel.
But how can I get the BrowseControl to set visible/invisble ?
ISControlContext does not have a getISPanel() method and I don't know how to
get a panel.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 17, 2006
10:26 AM
Like this
public void checkedISRadioButtonDef1(com.installshield.event.ui.ISControlContext arg0)
{
SwingPanel sp= (SwingPanel)arg0.getISContainer();
ISBrowseControl browseControl = sp.getBrowseControl("ISBrowseControlDef1");
browseControl.setEnabled(true);
}
public void checkedISRadioButtonDef1(com.installshield.event.ui.ISControlContext arg0)
{
SwingPanel sp= (SwingPanel)arg0.getISContainer();
ISBrowseControl browseControl = sp.getBrowseControl("ISBrowseControlDef1");
browseControl.setEnabled(true);
}