>-- On Tue, 10 Apr 2007 16:00:40 -0700 Ian Simpson wrote
--
> This method of using a multiline text control still has
the problem
> that while it is busy in the calc engine and sending
updated text
> in the same way as the data converter project, if I try
to do
> something with the mouse in the dialog area or move it
around, it
> will go blank until the calculation returns, when all
is displayed
> again. Is there a way to disable all mouse input
effects while in a
> calculate handler?
Hi!
Well, of course, I can only speculate, not having a suitable
test bed (i.e.,
your .pjd and hand coded source). Just spitballing it, I
might try setting up an
All Mouse Events handler and establish a boolean
(this->calculating) that is
false at startup and true once calculations commence then
false again when
calculations are complete.
Then, in the mouse events handler, I'd check the boolean, if
it is false, pass
the event on, if true, short circuit the event. Something
like:
if(this->calculating) return;
event.Skip();
Of course, if there were certain mouse events I wanted to
check for, I'd have to
test that in the true case of the if, but the principle is
the same.
That might work, but without a test bed I have now way of
knowing if it worked
and/or if it had undesirable side effects.
HTH:
thx,
Dave S.
Arthur Dent:
COMPUTER DO SOMETHING!
Eddie the Computer:
Sure thing fella! Switching to manual control... good
luck!
wxMS_developers · Development with wxWidgets on MSWindows
h
ttp://tech.groups.yahoo.com/group/wxMS_developers/
wxWidgets Code Exchange
http://wxcodex.net/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
htt
p://groups.yahoo.com/group/anthemion-devtools/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/anthemion-devtools/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:anthemion-devtools-digest@yahoogroups.com
mailto:anthemion-devtools-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
anthemion-devtools-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|