View Full Version : BrowseControl and fix additional path

03-14-2006, 06:16 AM

I am using a browsecontrol object to select the installation directory of our product.

Now I want to add a fix part to the installation directory like

"c:\program files\" [selected]
"company/product" [fix]

A customer can select the first part of the path but the second part is fix ever.

How can I do this ?

I have tried the following one:

public void insertUpdatebcDirectory(ISControlContext p_controlContext)
ISPanel panel = m_dialogContext.getISPanel();
ISBrowseControl bcDirectory =
String sDirectory = bcDirectory.getFile();

bcDirectory.setFile( sDirectory + "company/product" );


the fix part is added, after I selected a directory. But the selected part is not shown until I clicked in the browse control object. only the fix part is shown correctly.

What I doing wrong ? :confused: