Copyright © 2003-2010 MultiMedia Soft

Use under Borland Developer Studio 2006

Previous pageReturn to chapter overviewNext page

When used inside a Borland Developer Studio 2006 project, our component needs a turnaround in order to let the IDE saving the component's settings inside the container form resource file (.RESX): the problem is caused by a bug inside this specific IDE and we hope that Borland will fix it soon.

 

Steps needed to reproduce the problem:

 

Tell the IDE to create a new Windows Form Application project.
On the available form, add an instance of the component, for example an instance of Ctl3dPushButton.
Edit the component and change the Shape property from the Rectangle default to another shape: you will see the control assuming the requested shape.
Save the form code using the "File/Save" menu item or, in alternative, pressing the corresponding Ctrl+S accelerator.
Now, try to run the project: you will see that, at runtime, the control will still have the original rectangular shape: this is caused by the fact that, when you simply press the "File/Save" menu item, the form will simply update the .PAS form's file and not the corresponding .RESX file (where the component's binary settings are effectively stored): this is clearly a bug of the IDE because these two files should be saved at the same time: the same problem will happen for any further modification performed on the component's instance.

 

How to fix the issue:

 

Instead of using the "File/Save" menu item, always use the "File/Save all" menu item or, in alternative, the corresponding Shift+Ctrl+S accelerator: this will ensure that both the form's .PAS and .RESX files will be saved correctly.