List Info

Thread: Re: How best to create a temporary window for drawing text - MSW C++7.1




Re: How best to create a temporary window for drawing text - MSW C++7.1
country flaguser name
United States
2007-04-10 18:00:40

Thanks again to Julian and Dave for good guidance. I gave up on my original concept of a separate "Progress" window as I wanted to keep it simple and ended up with the dialog shown here:

UI for old DOS programground-it.com" height="414" width="831">

The user enters file names and presses "Calculate" after which the progress scrolls up on the right. I knew there was a multiline text control, but I did not know one could append to them. 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? (I guess this is really a wxWidgets question rather than DB)

I did get the updated Platform SDK installed and working OK, then  had a problem with making a static linked program file so as not to have to send along .dll's. I found out my wxWidgets needed to be rebuilt for static linking. I found this is all possible within DB.

Regards,
Ian

Julian Smart wrote:

anthemion.co.uk" type="cite">
Ian Simpson wrote:
  
Thanks for your help and Julian's. I will get back later as I 
(hopefully) make progress, but thanks for the Visual Studio 2005 Express 
tip. I installed it and am using it now.

Question: After changing to V8, it could not find <windows.h>. I 
searched for <windows.h> and only found it in my old Visual Studio .NET 
2003 PlatformSDK tree. It was not anywhere in 2005. So I have set the 
PLATFORMSDK path to VS .NET 2003 and it works OK. Is that what one is 
supposed to do?
  
    
Please see:

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

You need to download the Platform SDK (or use one you already have).

Regards,


Julian



 
  

__._,_.___
.

__,_._,___
View Original Image
Re: How best to create a temporary window for drawing text - MSW C++7.1
country flaguser name
United States
2007-04-10 18:45:41
>-- 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/
 

Re: How best to create a temporary window for drawing text - MSW C++7.1
country flaguser name
United States
2007-04-12 01:16:41
Hi
> 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? 
> (I guess this is really a wxWidgets question rather
than DB)
Use ::wxSaveYield

http://www.wxwidgets.org/manuals/stab
le/wx_appinifunctions.html#wxsafeyield

or wxApp::Yield

http://www.wxwidgets.org/manuals/stable/wx_wxapp
.html#wxappyield

during your calculation (not always, but a number of times a
second, if 
this is possible in your calculation). You could also make
you 
application not responsive for input with
wxWindowUpdateLocker

http://www.wxwidgets.or
g/manuals/stable/wx_wxwindowupdatelocker.html#wxwindowupdate
locker

HTH,
Werner





 
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/
 

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )