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 » Balloon tooltips bug Collapse All
Subject Author Date
Thomas Fuchs Mar 28, 2006 - 1:07 AM

Hello there,

I was using version 2.30 ever since and recently changed to 2.53. If you enable the balloon menu tooltips with icon using

CExtPopupMenuWnd::g_eTtsClassicMenu = CExtPopupMenuTipWnd::__ETS_BALLOON

the icon is not painted properly (i.e. cut off). I have emailed you some screen dumps this morning.

By the way, I read somewhere here in the forum that you guys are of the opinion the balloon (or any other version) tooltips look a bit odd for menu bars and thus disabled this feature by default. I don’t agree with you here. Such a tooltip surely tells the user a lot more about a menu command he might click rather then the menu item text itself, providing the tooltip text is informative enough...

Thanks for your help and best regards,
Thomas

Technical Support Mar 28, 2006 - 7:44 AM

The balloon tips in menus are turned off by default due to following reasons: they are not present in Microsoft applications and yet a greater number of our customers wants it to be turned off (judging by the number of requests). We agree these tooltips are useful. We confirm that there is a bug with painting the information icon in the balloon tip. It can be fixed by updating the source code for the CExtPopupMenuTipWnd class constructor in the ExtPopupMenuWnd.cpp file:

CExtPopupMenuTipWnd::CExtPopupMenuTipWnd()
    : m_bFlipHorz( false )
    , m_bFlipVert( false )
    , m_sizeClassicMargins( 3, 2 )
    , m_sizeRounders( 12, 10 )
    , m_sizeLeader( 25, 25 )
    , m_nIconMarginDX( 5 )
    , m_nBalloonDistance( 12 )
    , m_nClassicDistance( 13 )
    , m_eTS( CExtPopupMenuTipWnd::__ETS_BALLOON )
    , m_nSizeShadow( -1 )
    , m_ttLA( 0 )
{
    m_AnimationType = __AT_NONE;
    m_bAnimFinished = true;
BYTE arrIconInformation[]=
{
0x42,0x4D,0x36,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x00,
0x00,0x00,0x01,0x00,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,
0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x54,0x29,0x14,0x00,0x51,0x26,0x12,0x1B,0x56,0x2A,0x15,0x52,0x55,0x2A,
0x15,0x0F,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,
0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x54,0x29,
0x14,0x00,0x51,0x26,0x11,0x36,0x9A,0x6B,0x45,0xD1,0x75,0x47,0x29,0xCF,0x50,0x26,0x12,0x19,0x55,0x2A,0x15,0x00,0x55,0x2A,
0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,
0x15,0x00,0x55,0x2A,0x15,0x00,0x54,0x29,0x14,0x00,0x50,0x25,0x11,0x00,0x4C,0x21,0x0C,0x34,0x91,0x66,0x45,0xE4,0xE8,0xBC,
0x8E,0xFF,0x78,0x4A,0x2C,0xCD,0x4E,0x23,0x10,0x1F,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,
0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x53,0x27,0x13,0x00,0x4F,0x23,0x0F,0x17,0x58,0x2C,
0x16,0x66,0x69,0x3F,0x27,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FF,0xFF,0xFF,0x9C,0x61,
0x43,0xFF,0x8F,0x21,0x00,0xFF,0xC7,0x99,0x80,0xFF,0xFF,0xFF,0xFD,0xFF,0xFF,0xFC,0xF8,0xFF,0xFF,0xFF,0xFC,0xFF,0xFA,0xF2,
0xE8,0xFF,0x97,0x77,0x62,0x91,0x4D,0x20,0x0B,0x04,0x55,0x2A,0x15,0x00,0xED,0xD3,0xBA,0x00,0xED,0xD4,0xBC,0x0C,0xE7,0xDD,
0xD2,0x9B,0xF2,0xF1,0xF0,0xFF,0xFB,0xFC,0xFD,0xFF,0xFE,0xFF,0xFF,0xFF,0xC6,0xB2,0xA8,0xFF,0x8A,0x5C,0x4F,0xFF,0xDF,0xD2,
0xCB,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xEE,0xE5,0xDD,0xF1,0x95,0x76,0x64,0x76,0x51,0x24,0x0F,0x03,0x54,0x29,
0x14,0x00,0x55,0x2A,0x15,0x00,0xED,0xD3,0xBA,0x00,0xED,0xD4,0xBD,0x00,0xEA,0xD8,0xC6,0x00,0xCB,0xB6,0xA8,0x3D,0xE1,0xD9,
0xD1,0xA1,0xF1,0xEE,0xEB,0xE1,0xFA,0xFC,0xFD,0xEE,0xFB,0xFF,0xFF,0xEE,0xFA,0xFA,0xFA,0xEE,0xED,0xE5,0xDD,0xD1,0xAE,0x97,
0x89,0x88,0x68,0x40,0x2C,0x26,0x4C,0x20,0x0A,0x00,0x54,0x29,0x14,0x00,0x55,0x2A,0x15,0x00,0x55,0x2A,0x15,0x00,0x00
};
    m_sizeRenderingIcon.cx = 16;
    m_sizeRenderingIcon.cy = 16;
    VERIFY(
        m_icon.m_bmpNormal.LoadBMP_Buffer(
            arrIconInformation,
            sizeof(arrIconInformation) / sizeof(arrIconInformation[0])
            )
        );
}


Thomas Fuchs Mar 29, 2006 - 4:19 AM

...that fixed it.

Best regards,
Thomas