Print Page | Close Window

[SOLVED] Similar tooltip window as used in ribbon

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=18317
Printed Date: 19 June 2025 at 11:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Similar tooltip window as used in ribbon
Posted By: mgampi
Subject: [SOLVED] Similar tooltip window as used in ribbon
Date 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



Replies:
Posted By: mgampi
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net