View Full Version : How to set BrowseControl (in)visible when checked a CheckBox ?

03-16-2006, 12:00 PM

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 ?


Eyal Goren
03-16-2006, 12:17 PM

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.


03-17-2006, 04: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.

Eyal Goren
03-17-2006, 11:26 AM
Like this

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