Supporting Messaging in Components

The VkMsgComponent class is a subclass of VkComponent that works with VkMsgApp to support the ObjectPak interprocess message facility. You should use VkMsgComponent to derive new components if those components must send or receive ToolTalk messages. You do not need to derive components from VkMsgComponent if those components do not interact with ToolTalk. Furthermore, you usually should handle the ToolTalk interaction in an application through the application's VkMsgApp object or one of its VkMsgWindow objects.

The VkMsgComponent constructor creates an instance of VkMsgClient that you can use to manage messages in that component. Access the window's VkMsgClient object with function VkMsgWindow::messageClient():

VkMsgClient *messageClient()

VkMsgComponent also provides a variety of convenience functions for directly manipulating a component's VkMsgClient object. Consult the VkMsgComponent(3) reference page for more information.