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
- :
- Replacing ISComboBox with ISTextField
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
‎Jun 19, 2007
06:18 PM
Replacing ISComboBox with ISTextField
I am trying to replace an ISComboBox with an ISTextField based on user selection.
Here is my code:
ISComboBox state = arg0.getISContainer().getComboBoxControl("insite2_state_list");
state.setVisible(false) //Hiding the state combo box
//Creating a new ISTextField and setting its properites.
ISTextField stateField = (ISTextField)(new SwingTextField()); stateField.setSize(new Dimension(157,12));
stateField.setVisible(true);//Show ISTextField instead of the combo box.
This doesn't work..anybody know how to do this?
Thanks
Here is my code:
ISComboBox state = arg0.getISContainer().getComboBoxControl("insite2_state_list");
state.setVisible(false) //Hiding the state combo box
//Creating a new ISTextField and setting its properites.
ISTextField stateField = (ISTextField)(new SwingTextField()); stateField.setSize(new Dimension(157,12));
stateField.setVisible(true);//Show ISTextField instead of the combo box.
This doesn't work..anybody know how to do this?
Thanks
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2007
10:21 AM
You probably could do it this way, but not with that code. The easiest approach would be to have both controls created on the form from the beginning and then you could disabled/hide, enable/show them based on user selection. You may need call setLocation to move the newly shown field around...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2007
03:43 PM
Great!..I got it to work ..
Thanks again
Thanks again
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)