Programming with Microsoft Visual C++.NET 6ed [Electronic resources]

George Shepherd, David Kruglinski

نسخه متنی -صفحه : 319/ 115
نمايش فراداده

ToolTips

You've seen ToolTips in various Windows applications, including Visual Studio. When the user positions the mouse on a toolbar button for a certain interval of time, text is displayed in a little ToolTip box next to the button. In Chapter 12, you learned that menu commands can have associated prompt strings, which are string resource elements with matching IDs. To create a ToolTip, you simply add the tip text to the end of the menu prompt, preceded by a newline (\n) character. The resource editor lets you edit the prompt string while you're editing the toolbar images. Just select a toolbar image and edit the Prompt property in the Properties window.