LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reach fields in several tabs

Solved!
Go to solution
 
Hello,
I have a panel that have several tabs. I would like to retrieve the value of a field from one tab from the callback function of another tab, how to do?

Thank you for help
0 Kudos
Message 1 of 4
(2,146 Views)

Hi Taloche, 

 

To make sure I understand your question, you have: 

    - Panel 1

    - Tab 1

    - Tab 2

    - Callback function from Tab 2

 

Goal: 

    - You want to make it so you retrieve the return of the callback function from Tab 2 using a control from Tab 1.  

 

Solution (if I understood correctly): 

    - You can force a control from Tab 1 that calls on the callback function when its EVENT (such as EVENT_COMMIT) occurs so that the Panel and Control from Tab 2 are the inputs. 

 

For example, this can be the case for a control in Tab 1: 

    case EVENT_COMMIT:

        returnValue = CallbackFunction (<Handle for Tab 2>, <Control for Tab 2>, .... );

        break; 

 

Let me know if I misunderstood the question or if there is anything I can clarify. 

 

Regards,

Vincent 

0 Kudos
Message 2 of 4
(2,136 Views)

Hi Vincent,

 

Thanks for your answer, i have find my solution:

 

I have :

1 panel,

2 tabs with text fields

 

When it is the Tab 2 that is active I want to be able to read a field from Panel 1. It was just my handle that was not good.

 

Bests regards

0 Kudos
Message 3 of 4
(2,111 Views)
Solution
Accepted by topic author Taloche_27

Hi Taloche, 

 

Not a problem. Be sure to mark your response as the answer! This helps other users find the answer quickly and marks the issue to be RESOLVED. 

 

Regards,

Vincent

0 Kudos
Message 4 of 4
(2,103 Views)