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 » Dots of focus button looks no so good... Collapse All
Subject Author Date
Offer Har Jan 1, 2009 - 10:25 AM

Hi,


In the Obsidian theme, when a button is pressed and the focus dots are displayed, for some reason some of the dots are drawn in a complete different color, as you can see in this capture:



And blown up:



We get complaints about it from our customers... can this be fixed so that the dots wont blend with the back-color? we realy do not need this purple dots...


Thanks,


Ron.


 

Technical Support Jan 2, 2009 - 3:08 PM

Please find the following code very close to the end of the CExtPaintManagerOffice2007_Impl::PaintPushButton() method:

   // Draw focus rectangle
            if(                     _ppbd.m_bDrawFocusRect 
                        &&        ( ( !sTitle.IsEmpty() ) || _ppbd.m_nFocusMode == __EBFM_CLIENT_AREA )
                        &&        rcFocus.bottom > rcFocus.top 
                        &&        rcFocus.right > rcFocus.left
                        )
            {
                        rcFocus.DeflateRect( 2, 2 );
                        dc.DrawFocusRect( &rcFocus );
            }

Then please replace the dc.DrawFocusRect( &rcFocus ); line of code with the following lines:
               stat_DrawDotLineH( dc, rcFocus.left,  rcFocus.right, rcFocus.top,    RGB(0,0,0) );
                        stat_DrawDotLineH( dc, rcFocus.left,  rcFocus.right, rcFocus.bottom, RGB(0,0,0) );
                        stat_DrawDotLineV( dc, rcFocus.left,  rcFocus.top,   rcFocus.bottom, RGB(0,0,0) );
                        stat_DrawDotLineV( dc, rcFocus.right, rcFocus.top,   rcFocus.bottom, RGB(0,0,0) );