Change colour of tooltip...

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Change colour of tooltip...

Post by lidds »

Is there a way to change the background colour of the tooltips from it default colour of yellow, to just white?

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Change colour of tooltip...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Well, by default the tooltip color is COLOR_INFOBK. You can changed it by using the "tip" id in the theme.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change colour of tooltip...

Post by lidds »

Alex,

I have tried there following, but with no effect, was this what you were referring to?

Code: Select all

        Dim pr As PDFXEdit.ICabNode = Me.docPreview.Inst.Settings("CustomUI")
        Dim clrArr As PDFXEdit.ICabNode = pr("Colors")
        SetCustColor(clrArr, "base", "rgbd(255,255,255)")
        SetCustColor(clrArr, "face", "rgbd(255,255,255)")
        SetCustColor(clrArr, "window", "rgbd(255,255,255)")
        SetCustColor(clrArr, "main.bg", "rgbd(255,255,255)")
        SetCustColor(clrArr, "dlg.bg", "rgbd(255,255,255)")
        SetCustColor(clrArr, "pg.bg", "rgbd(255,255,255)")
        SetCustColor(clrArr, "hot", "rgbd(205,230,247)")
        SetCustColor(clrArr, "tip", "rgbd(255,255,255)")

Code: Select all

    Private Sub SetCustColor(clrArr As PDFXEdit.ICabNode, clrID As String, clrVal As String)
        Dim cnt As Integer = clrArr.Count
        Dim clr As PDFXEdit.ICabNode = Nothing
        For i As Integer = 0 To cnt - 1
            Dim it As PDFXEdit.ICabNode = clrArr(i)
            Dim id As String = it("ID").[String]
            Console.WriteLine(id.ToString & " " & clrID.ToString)
            If clrID = id Then
                clr = it
                Exit For
            End If
        Next
        If clr Is Nothing Then
            clr = clrArr.Add()
            If clr Is Nothing Then
                Return
            End If
        End If
        clr("ID").v = clrID
        clr("Value").v = clrVal
    End Sub
Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Change colour of tooltip...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Also try changing the tip.dark and tip.light colors.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change colour of tooltip...

Post by lidds »

Alex,

I have tried this and it seems to make no change to the tooltip

Code: Select all

        SetCustColor(clrArr, "tip", "rgbd(255,255,255)")
        SetCustColor(clrArr, "tip.dark", "rgbd(255,255,255)")
        SetCustColor(clrArr, "tip.light", "rgbd(255,255,255)")
Any ideas?

Thanks

Simon
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change colour of tooltip...

Post by lidds »

Sorry Alex, this does work. I was resetting the PDF Xchange settings in the wrong order

Thanks

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Change colour of tooltip...

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply