System button dblclick not working on MDIChild |
Post Reply |
Author | |
garyhenson
Groupie Joined: 26 September 2008 Location: Frisco, Texas Status: Offline Points: 23 |
Post Options
Thanks(0)
Posted: 23 June 2009 at 1:17pm |
We've upgraded our Xtreme SuitePro from 10.4.1 to 13. Our app is an MDI app. It's 'different' than traditional MDI apps in that we add a ribbon bar and System button to the child windows since each window presents the User with a unique set of 'tools' on the ribbon bar.
Double clicking on the System button in the MIDParent works correctly, shutting down the app. But double clicking on the System button of the child windows no longer fires the shutdown event. In 10.4.1 this worked.
Is there a workaround or a flag I'm not setting?
Thanks again for a great product and great support!
|
|
Software Developer
Product: Xtreme SuitePro (ActiveX) version 13.0 Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes for Child windows Execute event is fired instead. Catc it and manually close it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
garyhenson
Groupie Joined: 26 September 2008 Location: Frisco, Texas Status: Offline Points: 23 |
Post Options
Thanks(0)
|
Sorry, I'm not sure what you mean.
I catch the cbTitle_Execute event (cbTitle si the ribbon bar that has the large round System button) but it does not catch a double click. It catches the events for the button items I've added ('Save', 'Save and Close' and 'Discard and Close' in my case) but not a double click.
Here's how I create the ribbon bar and System button:
... in form load...
ConfigureMdiChildEditorRibbonBar cmdbars.AddRibbonBar("Title"), bShowRibbonBarQuickAccess
...
Private Sub ConfigureMdiChildEditorRibbonBar( _
ByVal rb As XtremeCommandBars.RibbonBar, _ ByVal bShowQuickAccess _ ) With rb .AllowMinimize = True .EnableDocking XtremeCommandBars.XTPToolBarFlags.xtpFlagStretched .ShowCaptionAlways = False .ShowGripper = False .MinimumVisibleWidth = 100 .ShowQuickAccess = bShowQuickAccess AddMdiChildEditorSystemButton rb .EnableFrameTheme .RedrawBar End With End Sub Private Sub AddMdiChildEditorSystemButton(ByVal rb As XtremeCommandBars.RibbonBar)
Dim cbp As XtremeCommandBars.CommandBarPopup Set cbp = rb.AddSystemButton() With cbp .CommandBar.SetIconSize 32, 32 .IconId = ID_TRYGEAR_ICON .flags = xtpFlagNoMovable End With AddMdiChildEditorSystemButtonButtons cbp End Sub ' Caller must add BTN_ID_SAVE, BTN_ID_SAVE_AND_CLOSE, and BTN_ID_DISCARD_AND_CLOSE
' to CommandBars' Execute() handler Private Sub AddMdiChildEditorSystemButtonButtons(ByVal cbp As XtremeCommandBars.CommandBarPopup) AddSystemButtonButton(cbp, BTN_ID_SAVE, ICON_SAVE, "Save").Enabled = CanSaveObjects() AddSystemButtonButton(cbp, BTN_ID_SAVE_AND_CLOSE, ICON_SAVE_AND_CLOSE, "Save and Close").Enabled = CanSaveObjects() AddSystemButtonButton cbp, BTN_ID_DISCARD_AND_CLOSE, ICON_DISCARD_AND_CLOSE, "Discard and Close" End Sub Heres my ribbon bar event code: Private Sub cbTitle_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)
Select Case Control.id Case BTN_ID_SAVE, BTN_ID_SAVE_AND_CLOSE, BTN_ID_DISCARD_AND_CLOSE HandleFileOps Control.id End Select End Sub Sorry for the confusion.
|
|
Software Developer
Product: Xtreme SuitePro (ActiveX) version 13.0 Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
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 |