New backstage events |
Post Reply |
Author | ||
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
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) |
||
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
|
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) |
||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
|
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 |
||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|
we are adding something for next release
|
||
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
|
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) |
||
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
|
Just a question about that. How do you plan to do this ? Did you need us to do some tests before releasing ?
What's new about this ? |
||
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate Language: VB6 SP6 (FR) |
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
To Show Backstage call
RibbonBar.SystemButton.Execute Working with Event. |
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
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 |
||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|
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 |
||
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
|
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) |
||
tfrancois
Groupie Joined: 21 August 2007 Status: Offline Points: 78 |
Post Options
Thanks(0)
|
|
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 |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |