EasyTab Parent Panels Do Not Receive Focus EventsPrimary Software: LabWindows/CVI Development Systems>>Full Development SystemPrimary Software Version: 8.0 Primary Software Fixed Version: N/A Secondary Software: LabWindows/CVI Development Systems>>Base Package
Problem: In LabWindows/CVI, when I create an EasyTab control on a panel, I do not receive focus events when I click on the parent panel. How can I correct this behavior? Solution: You are seeing this behavior because the focus events for the parent panel are intentionally being discarded in the EasyTab control code. This behavior was intentionally made in order to be consistent with the different rules used for activating tab panels as opposed to conventional child panels. For more detailed information refer to the EasyTab source code comments in the ActivationHookPanelCallback and InstallActivationHooks functions. If you prefer to change this behavior, remove the EVENT_LOST_FOCUS and EVENT_GOT_FOCUS cases from the Sheet_PanelCallback function in easytab.c file. A modified version of the easytab.c file is attach below. This file will work in CVI 7.0, 7.1, and 8.0. Simply copy the attached file to the toolslib\custctrl folder in your LabWindows/CVI installation directory. As of CVI 8.0, NI recommends using the standard Tab control instead of the EasyTab control. For more information on Tab controls, see Library Reference»User Interface Library»Controls»Control Types»Tab Control in the CVI Help. Related Links: KnowledgeBase KB 0QOGMPTL: How Do I Know When a User Changes Tabs Using EasyTab? Developer Zone Example: Determining Active Panel On An Easy Tab Control In CVI Attachments:
Report Date: 11/08/2005 Last Updated: 10/02/2007 Document ID: 3R7D01ZW |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
