cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
-__Timo__-
Level 3

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
Labels (1)
0 Kudos
(3) Replies
Eyal_Goren
Level 6

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
0 Kudos
-__Timo__-
Level 3

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.
0 Kudos
Eyal_Goren
Level 6

Like this


public void checkedISRadioButtonDef1(com.installshield.event.ui.ISControlContext arg0)
{
SwingPanel sp= (SwingPanel)arg0.getISContainer();
ISBrowseControl browseControl = sp.getBrowseControl("ISBrowseControlDef1");
browseControl.setEnabled(true);

}
0 Kudos