Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
7 ratings:
 3.85 out of 5     Rate this Document

File Browser Control Callbacks in LabWindows/CVI

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I created a callback function for my File Browser control in LabWindows/CVI, but it doesn't seem to be called when user events occur on the right hand side of the File Browser control. The callback is only fired when the user clicks on the left hand side of the File Browser. How can I catch user events on the right side?

Solution:
The File Browser control in LabWindows/CVI is actually made out of 2 listbox controls. When you create a callback for the File Browser control you are really making a callback for the left hand side of the File Browser control (the tree side). To create a callback for the right hand side of the File Browser control you have to first determine programmatically what the control ID of the listbox is and then install a callback function using the InstallCtrlCallback() function. See the attached example.

Related Links:

Attachments:


File Browser Example.zip - File Browser Example.zip



Report Date: 08/08/2006
Last Updated: 09/08/2006
Document ID: 407BGOCW

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit