Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - System button dblclick not working on MDIChild
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

System button dblclick not working on MDIChild

 Post Reply Post Reply
Author
Message
garyhenson View Drop Down
Groupie
Groupie
Avatar

Joined: 26 September 2008
Location: Frisco, Texas
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyhenson Quote  Post ReplyReply Direct Link To This Post Topic: System button dblclick not working on MDIChild
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2009 at 1:40am
Hi,
 
Yes for Child windows Execute event is fired instead. Catc it and manually close it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
garyhenson View Drop Down
Groupie
Groupie
Avatar

Joined: 26 September 2008
Location: Frisco, Texas
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyhenson Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2009 at 10:15am
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
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.