Change IUIX_CmdBar Style  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: 1527
Joined: Thu Sep 05, 2019 12:35 pm

Change IUIX_CmdBar Style

Post by zarkogajic »

Hi Support,

Is there a way to change (get/set) the UIX_CmdBarStyleFlags of an existing IUIX_CmdBar?

Here's what I'm trying to do:

image.png

If I'm not wrong the 'cmdbar.pageNav' has UIX_CmdBarStyle_Center flag set and 'cmdbar.pageZoom' has UIX_CmdBarStyle_Right flag set.

I'd like to remove those flags so the bars get positioned to the left in its IUIX_CmdLine.


p.s.
From the screen shot you can see that I've removed some bars and some commands already.


-žarko
You do not have the required permissions to view the files attached to this post.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19924
Joined: Mon Jan 12, 2009 8:07 am

Re: Change IUIX_CmdBar Style

Post by Stefan - PDF-XChange »

Hello zarkogajic,

Given the time of the year - our devs might take longer to follow up, but I do not think those flags can be removed.

What you can do is just use the "Document Options" toolbar that is aligned left and add your needed buttons to it?

Happy holidays and
Kind regards,
Stefan
zarkogajic
User
Posts: 1527
Joined: Thu Sep 05, 2019 12:35 pm

Re: Change IUIX_CmdBar Style

Post by zarkogajic »

Hi Stefan,

Thanks.

I actually want those specific bars to go left, not to add my command items...

p.s.
Yes, I was afraid there's no way to get/set those flags in SDK, but lets wait for devs - maybe they decide to allow this ... :)

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

Re: Change IUIX_CmdBar Style

Post by Stefan - PDF-XChange »

Hello zarkogajic,

Yep - leaving it to our devs to also take a look! Hopefully there is a solution for your case!

Kind regards,
Stefan
User avatar
MishaH
User
Posts: 28
Joined: Wed Sep 11, 2024 1:43 pm

Re: Change IUIX_CmdBar Style

Post by MishaH »

Hello zarkogajic,

Please try this:

Code: Select all

IUIX_CmdBar.Obj.SetStyle(0, (int)PDFXEdit.UIX_CmdBarStyleFlags.UIX_CmdBarStyle_Center | (int)PDFXEdit.UIX_CmdBarStyleFlags.UIX_CmdBarStyle_Right);
I hope this helps.

Kind regards,
Misha
zarkogajic
User
Posts: 1527
Joined: Thu Sep 05, 2019 12:35 pm

Re: Change IUIX_CmdBar Style  SOLVED

Post by zarkogajic »

Hi Misha

Yes ;)

That does it, thanks!

-žarko
User avatar
Sean - PDF-XChange
Site Admin
Posts: 628
Joined: Wed Sep 14, 2016 5:42 pm

Re: Change IUIX_CmdBar Style

Post by Sean - PDF-XChange »

:)
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623