Document's tab (IUIX_LayoutItem) Title Suffix, Preffix, Icon ...  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

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.
zarkogajic
User
Posts: 1473
Joined: Thu Sep 05, 2019 12:35 pm

Document's tab (IUIX_LayoutItem) Title Suffix, Preffix, Icon ...

Post by zarkogajic »

Hi Support

image.png

For the last tab I'm setting prefix, suffix and also prefix icon.

I'm trying to change the color of prefix/suffix using TitlePrefixMixColor/TitleSuffixMixColor - but no result.

Also: there's a space character before suffix (no space after prefix), suffix is bold (by design).

Finally: is there a way to change the color of Title (or make it bold at least) ?

p.s.
Kind of extension to this (but wanted to open new thread): viewtopic.php?p=139195#p139195

-žarko
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Document's tab (IUIX_LayoutItem) Title Suffix, Preffix, Icon ...

Post by Vasyl - PDF-XChange »

Hi Zarko.

TitlePrefixMixColor/TitleSuffixMixColor - you need to use there the RGBA color:

Code: Select all

uint RGBA(byte r, byte g, byte b, byte a)
{
    return (uint)(r) | (((uint)g) << 8) | (((uint)b) << 16) | (((uint)a) << 24);
}
so please specify the alpha there from [0..255] and the final color will be calculated as alpha blend between the color of text from the current theme and the specified mix-color (use a==255 to see the specified color as is).
Finally: is there a way to change the color of Title (or make it bold at least) ?
No, unfortunately.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
zarkogajic
User
Posts: 1473
Joined: Thu Sep 05, 2019 12:35 pm

Re: Document's tab (IUIX_LayoutItem) Title Suffix, Preffix, Icon ...  SOLVED

Post by zarkogajic »

Hi Vasyl,

Ok, thanks.

-žarko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Document's tab (IUIX_LayoutItem) Title Suffix, Preffix, Icon ...

Post by Stefan - PDF-XChange »

:)