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 » Apply Aqua.Skin to CExtButton Collapse All
Subject Author Date
delu qiu May 8, 2006 - 8:17 AM

Hi,

I am trying to apply Aqua.Skin to a CExtResizableDialog derived dialog, but all CExtButton seems on focus when the dialog be loaded.
as the default CExtButton shows a on-focus color with a on-focus rectangle, and other CExtButton shows a on-focus color.

My code like this:
class CSPSSelection:public CExtNCW < CExtResizableDialog>
{
...
}

CSPSSelection::CSPSSelection(CWnd* pParent /*=NULL*/)
    : CExtNCW < CExtResizableDialog > ( CSPSSelection::IDD,pParent )
{
    //{{AFX_DATA_INIT(CSPSSelection)
    //}}AFX_DATA_INIT
}

int CSPSSelection::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CExtResizableDialog::OnCreate(lpCreateStruct) == -1)
        return -1;

CExtPaintManagerSkin * pPM = new CExtPaintManagerSkin;
    if( ! pPM->m_Skin.SearchAndLoadSkinFile( _T("Aqua.Skin"), false ) )
    {
        ::AfxMessageBox( _T("Failed to load initial skin.") );
        delete pPM;
    }
    else
        g_PaintManager.InstallPaintManager( pPM );    

    return 0;
}

Do I miss something?

Thanks

Technical Support May 10, 2006 - 3:37 AM

The appearance of the button in the focused and hovered states when the Aqua skin is applied is very close to the appearance of the default push button. The default push button is dark under this skin. We may guess all the buttons on your dialog are marked as default buttons. Please check this.

delu qiu May 12, 2006 - 9:57 AM

Just like you said, all the buttons on my dialog are marked as default buttons.
It looks fine now, thanks.