Turning off the Wait Window bell


Author
Message
Peter Jones
Peter Jones
Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K

Hi Dustin,

Well, here's the issue. It is definitely the WaitWindow that is causing the beep. I know this because if I remove the calls to WaitWindow it works ok. However, we call WaitWindow in utility class but, if the code is the form itself (as in Edhy's example), then no problems, e.g.

This doesn't beep:

    Private Sub PopulateGrids()

        Me.WaitWindow1.Message = "Please Wait. Refreshing Data.."

        Me.BoOTA1.RefreshBO()
        Me.BoOTY1.RefreshBO()

        Me.WaitWindow1.HideWaitWindow()

    End Sub


But this does:

    Private Sub PopulateGrids()

        clsFU.ShowTheWaitWindow(Me.WaitWindow1)

        Me.BoOTA1.RefreshBO()
        Me.BoOTY1.RefreshBO()

        clsFU.HideTheWaitWindow(Me.WaitWindow1)

    End Sub


The utility class code is:

#Region " Handle Wait Windows "

    Public Shared Sub ShowTheWaitWindow(ByVal WaitWindow As MicroFour.StrataFrame.Messaging.WaitWindow)
        ' Show we are doing something using default mesages
        ShowTheWaitWindow(WaitWindow, "PleaseWait", "RefreshingData")

    End Sub

    Public Shared Sub ShowTheWaitWindow(ByVal WaitWindow As MicroFour.StrataFrame.Messaging.WaitWindow, _
                                        ByVal WaitMessageLocKey As String, _
                                        ByVal ReasonMessageLocKey As String)
        ' Show we are doing something
        System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
        Waitwindow.ShowWaitWindow(clsLOC.Localise(WaitMessageLocKey), _
                                  clsLOC.Localise(ReasonMessageLocKey), _
                                  MicroFour.StrataFrame.Messaging.MessagingCardinalPosition.Center)
    End Sub

    Public Shared Sub HideTheWaitWindow(ByVal WaitWindow As MicroFour.StrataFrame.Messaging.WaitWindow)
        ' The refresh is over - hide the wait window
        System.Windows.Forms.Cursor.Current = Cursors.Default
        Waitwindow.HideWaitWindow()
    End Sub

#End Region


We use DevExpress for our UI - could this be influencing things in anyway?

Cheers, Peter

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (938 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Nope it shouldn't be soudning a beep.

Depending on the context you are using to call it, it might cause an error or notification bell to fire. For example, if you are calling it from a combo and in the process are causing an unhandled keypress, it might beep at you.

I'd try creating a new solution call the wait window from a button on a blank form to remove everything else from the equation. If it still beeps there let us know and we'll take a closer look, but it shouldn't Smile.

Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Peter, this is the code I use for the wait window...

Me.Cursor = Cursors.WaitCursor

Me.WaitWindow1.Message = "Please wait, Creating Invoice Number " & Me.BizServiceCalls1.InvoiceNumber & "..."

Of course there is more code prior to ShowMessage and HideWaitwindow.

Edhy Rijo

Peter Jones
Peter Jones
Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi Edhy,

Well that's interesting. Your comment made me think that, maybe, I was triggering something else in my environment however when I look at our library code for showing / hiding the wait window the only thing extra it does is change the form's Cursor.Current property which doesn't cause a beep.

I guess I will await SF's confirmation that the wait window doesn't beep then delve a bit deeper into my environment.

Cheers, Peter


Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Peter,

I use the Wait Window control and mine does not sound any beep.

Edhy Rijo

Peter Jones
Peter Jones
Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)Advanced StrataFrame User (718 reputation)
Group: Forum Members
Posts: 386, Visits: 2.1K
Hi,

Is there any way of turning off the Wait Window beep - its drives me nuts!!

Cheers, Peter

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search