Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - [solved] RibbonBar: QAT not in mdi title bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] RibbonBar: QAT not in mdi title bar

 Post Reply Post Reply
Author
Message
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Topic: [solved] RibbonBar: QAT not in mdi title bar
    Posted: 05 December 2017 at 1:06pm
Running your sample RibbonMDISample.vbp the QuickAccess, Standard Window Resizing Tools and some Custom Tools are all in the Title Bar of the mdi window. 
it seems that to achieve this goal you set EnableFrameTheme in your app, as if i try to delete this line the behaviour is different and all the tools are in a new bar below the title bar. 
In my application i am not able to put Quick Access and Standard Window Resizing Tools in the Mdi Title Bar, i tried both with and without EnableFrameTheme, but nothing change! 
What i have to look for ? I just want the behaviour you have in your sample!

Here An image of my application and of your sample app.
SuperPippo
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 05 December 2017 at 7:15pm
Hello,

Try use 
CommandBars.EnableOffice2007Frame(true);

see method SetApplicationTheme() in  Samples\CommandBars\C#.NET\RibbonSample\frmMain.cs

Regards,
 Oleksandr Lebed

Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2017 at 5:24am
doesn't work at all!
SuperPippo
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2017 at 5:53am
Note that 

CommandBars.EnableOffice2007Frame(true);

should be called after  changin theme

CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + strDLLFileName, strIniFileName);
CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource;
Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2017 at 1:21pm
Doesn't work!

In attachment a little vb6 sample project with the same problem.
The code is the same that you give in the activex help for the item "ribbon".

Can you look it and let me know what i have to fix in the code ?

Thank a lot
Maurizio
SuperPippo
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2017 at 6:17pm
Looks like you forgot to upload archive. I can see only 2 pictures in your uploaded files.
Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2017 at 3:49am
i try again....
SuperPippo
Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2017 at 3:58am
try this: uploads/1020/QuickAccessProblem1.zip

I can see the file sucessfully uploaded in my Member Control Panel in this forum.

Let me know...thanks

SuperPippo
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2017 at 4:17am
You are using v15.3.1...   There are a lot of changes from 2012 year.
I can debug sample later.
Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2017 at 5:29am
Yes i understand, but with the same release some sample of yours works fine.

SuperPippo
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2017 at 7:34am
in Form_Load() add 
Private Sub Form_Load()

    CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource
 '   CommandBars.EnableOffice2007Frame (True)

    Dim TabWrite As RibbonTab, GroupFont As RibbonGroup, Control As CommandBarControl
    Dim GroupClipborad As RibbonGroup, ControlPopup As CommandBarPopup



    'Declare a Ribbon Bar object
    Dim RibbonBar As RibbonBar

    'Add a Ribbon Bar to the command bars
    Set RibbonBar = CommandBars.AddRibbonBar("Ribbon Bar")
    RibbonBar.EnableFrameTheme
.....
Back to Top
Superpippo View Drop Down
Groupie
Groupie


Joined: 02 March 2005
Status: Offline
Points: 67
Post Options Post Options   Thanks (0) Thanks(0)   Quote Superpippo Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2017 at 11:05am
Ok, solved!

Thanks a lot.

Clap

SuperPippo
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.