Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Icons in tabbed tool bar no longer centered in profuis 281 Collapse All
Subject Author Date
marc uchida Nov 8, 2007 - 4:36 PM

We had a tabbed tool bar (CExtTabbedToolControlBarFlat/CExtToolControlBar) with buttons (CExtBarButton) that have an icon and text (underneath the icon) in each one. With version 262 it looked just fine.
After updating to 281 the text is still centered but the icons are no longer, with some are left justified, some line up to the text, some are centered, seems random.
Any ideas on what has changes between versions?
thanks, marc

marc uchida Nov 8, 2007 - 5:19 PM

aha. I found that I need to add a line of code to our derived class. Our virtual function override of CExtBarButton’s PaintCompond() needs to set the icon alignment.
Right after CExtPaintManager::PAINTPUSHBUTTONDATA _ppbd is created you can set the _ppbd member variable for m_nIconAlignment.
Some default must have changed somewhere as this wasn’t needed before.
The FunnyBars example was helpful here thanks.
marc