shekhar12
07-26-2004, 11:24 AM
I have created a Custom dialog "DialogTest" and in initializeUI event method I tried to create a button dynamically. Below given is the piece of code.
public void initializeUIdialogTest(com.installshield.event.ui.ISDialogContext arg0)
{
ISButtonDef button = arg0.getISFrame().getFrameDefinition().createButton();
button.setX(20);
button.setY(20);
button.setVisible(true);
button.setText("Test Button");
button.setEnabled(true);
button.setDefaultButton(true);
button.setDefaultFocus(true);
}
then in the sequence I inserted this dialog after welcome dialog. But when I run the project the dialog appears but the button is not visible. Please tell me how to make this button visible.
Abhishekhar
public void initializeUIdialogTest(com.installshield.event.ui.ISDialogContext arg0)
{
ISButtonDef button = arg0.getISFrame().getFrameDefinition().createButton();
button.setX(20);
button.setY(20);
button.setVisible(true);
button.setText("Test Button");
button.setEnabled(true);
button.setDefaultButton(true);
button.setDefaultFocus(true);
}
then in the sequence I inserted this dialog after welcome dialog. But when I run the project the dialog appears but the button is not visible. Please tell me how to make this button visible.
Abhishekhar