Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - [SOLVED] Similar tooltip window as used in ribbon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Similar tooltip window as used in ribbon

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Similar tooltip window as used in ribbon
    Posted: 04 May 2011 at 6:51pm
Hi;

I'm trying to create tooltip windows in my dialogs and views that look similar to the one used in ribbon bars. I tried several approaches but the font looks always different and also the size/position of the image is not the same.

Here you see the tooltip shown in the ribbon bar:


And here is mine:


The code to create my tooltip context in OnInitDialog is here:
    EnableToolTips();

    TipContext_->SetModuleToolTipContext();
    TipContext_->SetStyle(xtpToolTipResource);
    TipContext_->ModifyToolTipStyle(0, XTP_TTS_OFFICE2007FRAME);
    TipContext_->ShowTitleAndDescription(TRUE);
    TipContext_->ShowImage(TRUE, 0, 32);
    TipContext_->SetMaxTipWidth(200);


The application is skinned, so perhaps I have to consider this too, but how?

Any help is very wecome!


Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2011 at 7:21pm
Forget this issue;

Solved it by myself.
TipContext_->SetFont() and TipContext_->SetMargin() brought the final touch.

Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.