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

How do I get the frame from a button clicked event

How do I get the frame from this context?

public void buttonClickedApplicationImagesLocation_TestConnection(com.installshield.event.ui.ISControlContext context)
{
ISFrame frame = context. ?????? .getISFrame();
ISButton nextButton = frame.getButton("next");

nextButton.setEnabled(false);
..
Labels (1)
0 Kudos
(1) Reply
CChong
Level 11 Flexeran
Level 11 Flexeran

It can be done like this:

ISPanel panel = (ISPanel)context.getISContainer();
ISFrame frame = panel.getISFrame();
ISButton nextButton = frame.getButton(NEXT_BUTTON);
nextButton.setEnabled(false);
0 Kudos