Font Color Toolbar Button as in MS Word
-
Hi, I want to have a toolbar button with features and exact look as is found in microsoft word font color toolbar button. The toolbar button should have a text "A" written as is there in MS Word. When clicked, it should drop a menu with available colors. If I select one of the colors the color should come as an underline mark under the letter "A". How do I do this in VC++. Barna
-
Hi, I want to have a toolbar button with features and exact look as is found in microsoft word font color toolbar button. The toolbar button should have a text "A" written as is there in MS Word. When clicked, it should drop a menu with available colors. If I select one of the colors the color should come as an underline mark under the letter "A". How do I do this in VC++. Barna
The menu of available colors is also a tool window. You need to create this kind of customized toolbar which has a list of menu. (If not necessary, better use color Dialog Box) Call ShowControlBar(&m_colorToolBar, TRUE, FALSE); in your toolbar buttn click event handler. //m_colorToolBar should be of CToolBar Type. This will show your color toolbar. Now on each button(better to create colored button dynamically) click event handler, call ShowControlBar(&m_colorToolBar, FALSE, FALSE); at the end of the handler. Anurag Gandhi Bangalore, India.