From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Code buider - Generate Control Callback is disabled

Solved!
Go to solution

Hi,

 

Can any one say, Why Generate Control Callback is disabled ?

 

GenerateCtrlCallbak.PNG

 

 

Thank you

AD

 

 

Adarsh
CLA - Certified LabVIEW

Architect
https://www.youracclaim.com/badges/4871da75-1b8b-422a-a881-9ab206d2d36d/public_url
0 Kudos
Message 1 of 5
(3,555 Views)

Normally it happens when you have not specified a callback for the control:

 

callback3.PNG



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,551 Views)

Hi,

 

all I can add is that the entry 'Generate Control Callback' is dimmed if more than one control has been selected. Sometimes this happens by accident...

0 Kudos
Message 3 of 5
(3,550 Views)

I have selected default events. EVENT_COMMIT, EVENT_RIGHT_CLICK

Adarsh
CLA - Certified LabVIEW

Architect
https://www.youracclaim.com/badges/4871da75-1b8b-422a-a881-9ab206d2d36d/public_url
0 Kudos
Message 4 of 5
(3,544 Views)
Solution
Accepted by Adarsh

This is done in Code >> Preferences >> Default Events... menu function, but the editor does not automatically create control callbacks: you must manually set the callback for each and only the controls you want a function assigned to; this is done in the properties panels for each control.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 5 of 5
(3,541 Views)