LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Controls missing/hidden on Tab control first displaying

Hello ckcook,

 

This very well might be a documented bug. I'll be looking into this.

Ian M.
National Instruments
0 Kudos
Message 11 of 18
(966 Views)

Keep me posted, and let me know any known work arounds.

0 Kudos
Message 12 of 18
(958 Views)

Hey Ianidas300,

 

Did you find anymore details on this bug?

 

Thanks,

 

Chris

 

 

0 Kudos
Message 13 of 18
(934 Views)

Hi ckcook,

 

I did not find any documented issues related to missing tab controls. I think that the best next step is to examine the code to determine where exactly the error is occurring. If you could post the smallest piece of code that reproduces the issue, it would help speed up the process.

 

Regards,

 

Jason D

Applications Engineer

National Instruments

0 Kudos
Message 14 of 18
(919 Views)

Hallo, all,

I'm facing this issue too.

My application creates according the content of three configuration files on tabs control elements (some by copying of already exists, some new). On the first switching the tab there are some missing, after next tab switching mostly all of them are visible.


Unfortunately, the application is already quite extensive and extract a portion of the code is much work ... which requires time to do it ... you know ....

Any hints or news?

Thanks,

George

0 Kudos
Message 15 of 18
(873 Views)

Hi George,

 

I haven't found a true solution to the issue, but I have a possible (albeit very annoying) work around. You can explicitly in code hide and make every control visible when the tab is shown. This will allow everything to actually appear, though it is a real pain to code when the tabs have a lot of controls on them.

 

Any real solution would be greatly appreciated,

 

Chris

0 Kudos
Message 16 of 18
(870 Views)

While I have no real idea on a solution to this problem, I can suggest a method to make Chris workaround a bit more easy: you can iterate on all controls in a panel with a simple loop like this:

 

// Find first control in the panel
GetPanelAttribute (panelHandle, ATTR_PANEL_FIRST_CTRL, &ctrl);

// Iterate through all controls
while (ctrl) {
   // Apply control settings, make it visible/unvisible and so on
   ...

   // Find next control (returns 0 on the last one)
   GetCtrlAttribute (panelHandle, ctrl, ATTR_NEXT_CTRL, &ctrl);
}

 

You can put this code in a function called passing the panel handle.

 

Hope this helps.



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 17 of 18
(865 Views)

Hi Roberto,

 

Thanks for the suggestion, I wasn't aware of the ATTR_NEXT_CTRL.

 

Chris

 

0 Kudos
Message 18 of 18
(857 Views)