![]() |
MsgBox interaction |
Post Reply ![]() |
Author | |
chrisABC ![]() Senior Member ![]() ![]() Joined: 05 June 2008 Status: Offline Points: 258 |
![]() ![]() ![]() ![]() ![]() Posted: 16 April 2010 at 9:02am |
Has anyone else found an interaction between a MsgBox and the CJ Popup control?
When I startup my app, I first show a SplashScreen, and I recently changed this to use the CJ Popup control so I could get a nice transparent effect. As the software starts up, I display a MsgBox to inform the user of something. Since changing to use of the Popup control, I find that when the Popup control closes automatically after the set time, the MsgBox also gets closed!! So it looks like the Popup control is closing the MsgBox. Before I investigate further, I am just asking if this is a known effect???? |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
![]() |
|
chrisABC ![]() Senior Member ![]() ![]() Joined: 05 June 2008 Status: Offline Points: 258 |
![]() ![]() ![]() ![]() ![]() |
Several weeks later -- no comments. I guess I am the only one to have noticed this "interaction".
To work around it I now just do not use MsgBox when CJ Popup Control is used. If Cj programmers do not know about this "feature" then maybe something is not working as it should. |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi Chris,
Did you try replacing VB Messagebox with CodeJock TaskDialog?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
chrisABC ![]() Senior Member ![]() ![]() Joined: 05 June 2008 Status: Offline Points: 258 |
![]() ![]() ![]() ![]() ![]() |
Yes, tried that, same result.
|
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
Hi Chris,
I don't know what the MessageBox is for but if you show it in StateChanged event, the MsgBox has to be closed before PopupControl processes anything else. So Msgbox will stay on top as long as user doesn't close it.
Private Sub wndPopupControl_StateChanged()
If wndPopupControl.state = xtpPopupStateShow Then MsgBox "wndPopupControl_StateChanged"
End If
End Sub |
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
chrisABC ![]() Senior Member ![]() ![]() Joined: 05 June 2008 Status: Offline Points: 258 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the comment Aaron.
Just to be clear, I display a message box (or task dialog -- same result) and while this is displayed another process finishes and displays a Popup control. The Popup control appears and the messagebox disappears. The messagebox is not hidden -- it has been closed as if the user had pressed a button. I worked around this by not using the Popup control at this point. So I am just mentioning this interaction in case CJ was not aware of it. Zero replies is not an option....... (except in the Calendar Topic :-) |
|
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 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 |