Print Page | Close Window

[solved] RibbonBar: QAT not in mdi title bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23519
Printed Date: 01 May 2024 at 6:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] RibbonBar: QAT not in mdi title bar
Posted By: Superpippo
Subject: [solved] RibbonBar: QAT not in mdi title bar
Date 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



Replies:
Posted By: olebed
Date 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



Posted By: Superpippo
Date Posted: 06 December 2017 at 5:24am
doesn't work at all!

-------------
SuperPippo


Posted By: olebed
Date 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;


Posted By: Superpippo
Date 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
uploads/1020/QuickAccessProblem.zip" rel="nofollow - uploads/1020/QuickAccessProblem.zip


-------------
SuperPippo


Posted By: olebed
Date Posted: 06 December 2017 at 6:17pm
Looks like you forgot to upload archive. I can see only 2 pictures in your uploaded files.


Posted By: Superpippo
Date Posted: 07 December 2017 at 3:49am
i try again....

-------------
SuperPippo


Posted By: Superpippo
Date Posted: 07 December 2017 at 3:58am
try this:  uploads/1020/QuickAccessProblem1.zip" rel="nofollow - uploads/1020/QuickAccessProblem1.zip

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

Let me know...thanks



-------------
SuperPippo


Posted By: olebed
Date 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.


Posted By: Superpippo
Date Posted: 07 December 2017 at 5:29am
Yes i understand, but with the same release some sample of yours works fine.



-------------
SuperPippo


Posted By: olebed
Date 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
.....


Posted By: Superpippo
Date Posted: 07 December 2017 at 11:05am
Ok, solved!

Thanks a lot.

Clap



-------------
SuperPippo



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net