LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting source file

Hi,

 

when I ask CVI to generate a callback code from Control, I get the following result:

int CVICALLBACK MyProcedure (int panel, int control, int event,
                                        void *callbackData, int eventData1, int eventData2)

 

while I'd like to have the code written in this other way:

int CVICALLBACK MyProcedure (int panel, int control, int event, void *callbackData, int eventData1, int eventData2)

 

In order to get what I need, I have recorded a Macro, but of course I have to modify all the autogenerated code.

Is there any faster and automatic way to obtain what I want?

 

Thanks

Sergio

0 Kudos
Message 1 of 3
(4,128 Views)
Hi Sergio, I'm not sure I've understood correctly. You simply would like code to be generated on one unique line? Bye, Licia
0 Kudos
Message 2 of 3
(4,097 Views)

Hi Licia, yes you've well understood, I'd like to have CVI generating Control callbacks as well as Panel callbacks on a unique line.

But more, I'd like to know if there is menu, where I can program CVI in order to have it generating Control callbacks and Panel callbacks in different formats as I need situation by situation.

 

Bye

Sergio

0 Kudos
Message 3 of 3
(4,093 Views)