- m_cmdUpOverDownOver( this ), m_cmdDownOverUpOver( this ),
- m_cmdDownOverDown( this ), m_cmdDownDownOver( this ),
- m_cmdUpOverUp( this ), m_cmdUpUpOver( this ),
- m_cmdDownUp( this ), m_cmdUpHidden( this ),
- m_cmdHiddenUp( this )
-{
- // Build the images of the button
- OSFactory *pOsFactory = OSFactory::instance( pIntf );
- m_pImgUp = pOsFactory->createOSGraphics( rBmpUp.getWidth(),
- rBmpUp.getHeight() );
- m_pImgUp->drawBitmap( rBmpUp, 0, 0 );
- m_pImgDown = pOsFactory->createOSGraphics( rBmpDown.getWidth(),
- rBmpDown.getHeight() );
- m_pImgDown->drawBitmap( rBmpDown, 0, 0 );
- m_pImgOver = pOsFactory->createOSGraphics( rBmpOver.getWidth(),
- rBmpOver.getHeight() );
- m_pImgOver->drawBitmap( rBmpOver, 0, 0 );
-
+ m_imgUp( pIntf, rBmpUp ), m_imgOver( pIntf, rBmpOver ),
+ m_imgDown( pIntf, rBmpDown ), m_pImg( NULL ), m_cmdUpOverDownOver( this ),
+ m_cmdDownOverUpOver( this ), m_cmdDownOverDown( this ),
+ m_cmdDownDownOver( this ), m_cmdUpOverUp( this ), m_cmdUpUpOver( this ),
+ m_cmdDownUp( this ), m_cmdUpHidden( this ), m_cmdHiddenUp( this )
+{