Print Page | Close Window

New backstage events

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=17865
Printed Date: 06 June 2024 at 3:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: New backstage events
Posted By: Lodep59
Subject: New backstage events
Date Posted: 11 February 2011 at 5:57am
Hello,

I try to implement the new backstage functionnalities in my app.

My problem is that there's no event fired when a user click on a RibbonBackstageTab.
How can I do to tell my backstage's form (for example a backstage form wich contains recent file list) that she had to be updated ?

The form is loaded when the backstage view is created but I don't find any method called when the form is shown. 

I've tried the "gotfocus" event but when the backstage forms are shown they don't have focus.
Same thing with "resize" event. This event is fired the first time the form is shown but not later.

Any idea ?


-------------
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate
Language: VB6 SP6 (FR)



Replies:
Posted By: Lodep59
Date Posted: 12 February 2011 at 6:03am
Hello,

Finally I've found a workaround by using a timer watching if the "visible" property of the form change...

No other ideas ? If so, please CJ add a method to know if the user click on a backstage tab in order to call a "refresh" (not form refresh) function to update informations on the backstage form !


-------------
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate
Language: VB6 SP6 (FR)


Posted By: jpbro
Date Posted: 12 February 2011 at 3:39pm
It's to bad that Form_Activate doesn't fire unless the user clicks on something on the form - I think the Codejock code should activate the form, so that it fires.

Form_Paint does fire every time, but unfortunately it also fires when the form is moved and new portions of the window become visible.  I though of using a flag to test just for the first time it fires, but then we'd need to reset when the form becomes invisible and the Deactivate event only fires when the user clicks on another form in another backstage tab (not when the form becomes invisible).

You might be able to subclass the form to check for Visibility changes, but this is a pain for something that the CJ control could provide relatively easily.




-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: SuperMario
Date Posted: 14 February 2011 at 11:55am
we are adding something for next release


Posted By: Lodep59
Date Posted: 15 February 2011 at 4:40am
Thanks.

Also please add a "Show" method to show the backstage view.
It can be usefull in some case (for exemple to show the backstage when you open the software - like access 2010).


-------------
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate
Language: VB6 SP6 (FR)


Posted By: Lodep59
Date Posted: 22 February 2011 at 11:10am
Originally posted by SuperMario SuperMario wrote:

we are adding something for next release

Just a question about that. How do you plan to do this ?
Did you need us to do some tests before releasing ?


Originally posted by Lodep59 Lodep59 wrote:

Also please add a "Show" method to show the backstage view.
It can be usefull in some case (for exemple to show the backstage when you open the software - like access 2010).

What's new about this ?


-------------
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate
Language: VB6 SP6 (FR)


Posted By: Oleg
Date Posted: 22 February 2011 at 12:44pm
To Show Backstage call

RibbonBar.SystemButton.Execute

Working with Event.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date Posted: 22 February 2011 at 12:53pm
Ok, Backstage now also generates InitCommandsPopup.  code for next release:

Private Sub CommandBars_InitCommandsPopup(ByVal CommandBar As XtremeCommandBars.ICommandBar)
    
    If TypeOf CommandBar Is RibbonBackstageView Then
        Debug.Print "RibbonBackstageView"
    End If
End Sub


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: SuperMario
Date Posted: 23 February 2011 at 11:42am
And for when a Backstage Tab is clicked\opened we added:

Private Sub CommandBars_ControlNotify(ByVal Control As XtremeCommandBars.ICommandBarControl, ByVal Code As Long, ByVal NotifyData As Variant, Handled As Variant)
    If (Code = XTP_BS_TABCHANGED) Then
        Debug.Print Control.Caption
    End If
End Sub


Posted By: Lodep59
Date Posted: 24 February 2011 at 1:04am
Hi,

Seems ok for me. Waiting for next release.
When do you expect to publish 15.0.2 ?


-------------
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate
Language: VB6 SP6 (FR)


Posted By: tfrancois
Date Posted: 24 February 2011 at 9:24am
Thank you for adding these upcoming enhancements to the BackStageView feature.
But I have found a glaring issue that I can't seem to resolve and wondering if you could help.

I am using a form with controls aligned along the bottom of the form and when the form is displayed in a tab of the BackStateView, it seems as though the resizing of the form insists on cutting off the bottom of the form.  In other words, the form is not aligned to "fill" the client area, but instead its height is set to greater than the client area so a significant portion of the bottom of the form refuses to show.  Perhaps this is due to a miscalculation of the NEW height of the form within the client area container.  Please advise.

HINT: This bug will only be visible if there are controls at the very bottom of the child form being used in a backstage tab.  The sample app does not show this issue due to the fact that the backstage client forms in the sample do not have controls along the bottom.


-------------
     Product: Xtreme SuitePro (ActiveX) version 15.0.2
     Platform: Windows XP (32bit) - SP 3
     Language: Visual Basic 6.0 SP6



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