On Monday 09 September 2002 3:38 pm, Art Eschenlauer wrote:
> Scenario - I design an interface with IVIB and generate code. My code
> generation settings are:
> Interpose in existing file - FALSE
> Generate main() procedure - TRUE
> Generate component_setup() procedure - TRUE
> Generate init_dialog() and end_dialog() methods - TRUE
> Generate initially method - TRUE
> Generate method for each object handler - TRUE
>
> I save my changes using File>Generate Code (Alt-C) and begin modifying the
> generated code. I subsequently discover that I want to delete a button, add
> a tab page, rename a test list for which I have customized an event
> handler, etc..
>
> I would like to re-run IVIB. How do I re-run IVIB so that:
> 1. the changes that I have made to the source code are preserved when I hit
> Alt-C in IVIB?
> 2. the changes that I make in IVIB are incorporated into the source code
> when I hit Alt-C in IVIB?
> 3. renaming elements with event handlers that I have customized results in
> renaming of the event handler rather than leaving the event handler named
> as it is and adding a new event handler with the new name and no
> customization when I hit Alt-C in IVIB?
>
> If I cannot do all of that automatically, what is the manual procedure that
> I follow to allow me to maintain my source code with IVIB?
>

Hi Art

I think you must be using quite an old version of ivib, which stored the 
layout in a separate file (*.layout), and then generated the source code from 
that file.  The way to make changes to the generated source and then change 
the layout, and incorporate the changes into the source,  is to set 
"interpose in existing file" to true, and then generate code again.  The 
effect of this is to maintain the modified source file contents, except for 
the component_setup method (I think that was the name), which is re-created, 
and stuck in the middle of the modified source file, replacing the old one 
method of the same name.

Current ivib stores the layout in a comment at the end of the source file, 
thereby getting rid of this two-file complexity.

The latest ivib is on my webpage http://www.parlett.dial.pipex.com.  Hopefully 
this version will be integrated into the sourceforge distribution sometime 
soon.

Hope this helps,


Robert.





-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to