Skip to main content
Legend
November 14, 2010
Answered

Text Attribute / Adornment

  • November 14, 2010
  • 1 reply
  • 973 views

Hello,

Is there a way of achieving the same as the sample basictextadornment with out actually setting an attribute?

What I would like to do is temporally apply a background colour to some text. The other advantage this would have is the document would remain 'clean' so other users without the plugin could open the document.

Thanks.

This topic has been closed for replies.
Correct answer Chris_Roueche

Have a look at IGlobalTextAdornment (IGlobalTextAdornment.h), which hooks in as a service via kGlobalTextAdornmentServiceImpl.

1 reply

Chris_RouecheCorrect answer
Participating Frequently
November 14, 2010

Have a look at IGlobalTextAdornment (IGlobalTextAdornment.h), which hooks in as a service via kGlobalTextAdornmentServiceImpl.

PickoryAuthor
Legend
November 14, 2010

Thank you, that sounds like just what I want!

Inspiring
October 1, 2022
To implement  IID_IGLOBALTEXTADORNMENT added following in fr,  Can you tell me what I need to do so that IGLOBALTEXTADORNMENT::draw gets called

 

AddIn 

    {

 

        kJMTAdornmentBoss,

 

        kInvalidClass,

 

        {

 

            IID_IK2SERVICEPROVIDER,         kGlobalTextAdornmentServiceImpl,

 

            IID_IGLOBALTEXTADORNMENT,         kJMTAdornmentImpl,

 

        }

 

    }