LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using *callbackData (again)

My question concerns using the void *callbackData parameter in the GUI-generated callback functions in CVI (6.0). I know how to assign the callbackData to certain controls (using SetCtrlAttribute(..., ..., ATTR_CALLBACK_DATA, ...) ...but is there a way to assign the callbackData to a certain FUNCTION? I have several controls on my panel that call the same function with the same callbackData. It would be nice if I could assign the callbackData to the function using one line of code, rather than the several lines of code I need to assign the callbackData to each and every control.

Is there a away to do this?

Thanks is advance,
--Marianne
0 Kudos
Message 1 of 3
(3,210 Views)
No, you have to set it by control. You would have to call a SetCtrlAttribute for each control using the callback.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 3
(3,210 Views)
Chris,

I had a feeling that was the case but I thought I'd ask anyway. Thanks for the speedy reply!
--Marianne
0 Kudos
Message 3 of 3
(3,210 Views)