按钮点击事件 - 简单的问题 [英] button click event - simple question
问题描述
如果用户单击processit按钮,则会运行click事件代码。什么
如果他/她在完成处理之前再次点击它会发生什么?
系统是否记住并处理两次?如果
等待标记处于活动状态,它会忽略按钮单击但是如果默认光标处于活动状态则不会忽略按钮单击吗?
好的 - 我道歉 - 2个问题。
Tx,
伯尼
" Bernie Yaeger" ; <是***** @ cherwellinc.com> schrieb如果用户点击了processit按钮,则点击事件代码会运行。
如果他/她在完成处理之前再次点击它会怎样?
系统记住和处理两次?
是的,点击事件存储在消息队列中,并在上一个事件处理完毕后立即处理。
更多信息:
http://msdn.microsoft.com/library/en...sagequeues.asp
是否忽略按钮
点击如果waitcursor是活动的,但是如果默认光标处于活动状态则没有?
行为不依赖于游标,但是你应该设置游标
取决于应用程序/窗口状态。
-
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
*" Bernie Yaeger" <是***** @ cherwellinc.com> scripsit:如果用户单击processit按钮,则会运行click事件代码。如果他/她在完成处理之前再次点击它会发生什么?
系统是否记住并处理两次?
按钮点击将排队。
如果
等待标记处于活动状态,它是否忽略按钮单击但是如果默认光标处于活动状态则忽略?
如何激活此光标?
-
Herfried K. Wagner [MVP]
< http://www.mvps.org/dotnet>
Hi Herfried,
>
me.cursor = cursors.waitcursor
还有更好的办法吗?
Bernie
>
" Herfried K. Wagner [MVP]" <喜*************** @ gmx.at>在消息中写道
news:bq ************* @ ID-208219.news.uni-berlin.de ...*Bernie Yaeger <是***** @ cherwellinc.com> scripsit:如果用户单击processit按钮,则会运行click事件代码。
如果他/她在完成处理之前再次点击它会怎样?
系统是否记住并处理两次?
按钮点击将排队。
是否忽略按钮点击
waitcursor是否处于活动状态但是如果默认光标处于活动状态则不会?
如何激活此光标?
-
Herfried K. Wagner [MVP]
< http://www.mvps.org/dotnet>
If the user clicks the processit button, the click event code runs. What
happens if he/she clicks it again before it''s done processing? Does the
system remember and process twice? Does it ignore a button click if the
waitcursor is active but not if the default cursor is active?
OK - I apologize - 2 questions.
Tx,
Bernie解决方案"Bernie Yaeger" <be*****@cherwellinc.com> schriebIf the user clicks the processit button, the click event code runs.
What happens if he/she clicks it again before it''s done processing?
Does the system remember and process twice?
Yes, the click event is stored in the message queue and processed as soon as
the previous event(s) has been processed.
More info:
http://msdn.microsoft.com/library/en...sagequeues.asp
Does it ignore a button
click if the waitcursor is active but not if the default cursor is
active?
The behavior does not depend on the cursor, but you should set the cursor
depending on the application/window state.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit:If the user clicks the processit button, the click event code runs. What
happens if he/she clicks it again before it''s done processing? Does the
system remember and process twice?
The button click will be queued.
Does it ignore a button click if the
waitcursor is active but not if the default cursor is active?
How do you activate this cursor?
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Hi Herfried,
me.cursor = cursors.waitcursor
Is there a better way?
Bernie
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bq*************@ID-208219.news.uni-berlin.de...* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit:If the user clicks the processit button, the click event code runs. What happens if he/she clicks it again before it''s done processing? Does the
system remember and process twice?
The button click will be queued.Does it ignore a button click if the
waitcursor is active but not if the default cursor is active?
How do you activate this cursor?
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
这篇关于按钮点击事件 - 简单的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!