on 10-29-2004 10:22 AM
Hi
can I intercept a click on the confirm button of a message box?
thanks
Hi Rita,
I am new to UI and hope to understand your question;
I think that is possible to intercept a button CLICK on a message box.
You can use this sample code:
Dim rc As Integer
' send message box
rc = SBO_Application.MessageBox("Test ONE: ", , , "NO", "Cancel")
' intercept message click
Select Case rc
Case 1
SBO_Application.SetStatusBarMessage ("Button OK")
Case 2
SBO_Application.SetStatusBarMessage ("Button NO")
Case 3
SBO_Application.SetStatusBarMessage ("Button Cancel")
End Select
Bye,
Roberto
PS: You may look the helloworld sample in the UI samples.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you could use some kind of trick for these. As the messagebox form would be the last shown form,and you can´t open another form while clicking something, its ID would be the biggest one. If this suposition is true (if you know that this is not correct, post it!), you can code a program which handles the click event of the biggest ID form in the application.
Perhaps it´s not very good about performance, but does what you are looking for.
Regards,
Ibai Peñ
User | Count |
---|---|
97 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.