Re: Sorry, but need more help

From: ep (eps57_at_hotmail.com)
Date: 01/23/04


Date: Fri, 23 Jan 2004 07:42:46 -0800


"Bryan Oakley" <bryan@bitmover.com> wrote in message
news:OHUPb.10465$CB1.426@newssvr23.news.prodigy.com...
> ep wrote:
>
> > Thanks again to all that are responding.
> >
> > I tried the code below in a loop calling it. However, I am still doing
at
> > least one thing wrong (I tend to do multiple things wrong until I
stumble on
> > the resolution).
> >
> > First, I get a window that has the name of the TCLet on it. I would
like to
> > get rid of it (actually, never have it show).
>
> I'd suggest getting a good book on Tk and doing a bit of research. The
> command "wm" has options for setting the title and removing all
> decorations (look for "wm overrideredirect").
>
> By the way, "TCLet" has no meaning, or rather, the variation "tclet"
> most often refers to a tcl program running in the tcl web browser
> plugin. You aren't doing that, are you?
>

Oops. I guess I need to brush on the terminology. I am NOT doing anything
in web browsers. Just stand alone units. That MAY come later (if I am
still sane - which, by the way, is questionable from the start!).

> >
> > Second, I only get the last update. I even changed the time to 5
seconds
> > (5000).
>
> I suspect you get all updates but are only seeing the last because your
> loop is running too fast. I think we could give you code that displays a
> different message every few seconds so you could see it but I think it
> might only serve to confuse you even more.
>

Confusion is my monicor! I would like to see the code if, for nothing else,
my "education".

> I'm reasonably certain the code works, and is doing what you want. If
> you have a loop that runs three times in well under a second why do you
> want to see three different messages? I suspect your testing methods
> aren't in line with what you are actually trying to accomplish.
>

The last statement may prove correct. What I want to do, let us use this
for an example, is to every 2seconds, show in a message box the mouse
pointer position in x y coords. I thought (sometimes that is a strenous
activity on my part) that I could use some kind of message box to display a
window with that data and have it stay on top and display the changes as the
user moves the pointer. Appears that what I want to do and the underlying
activities to accomplish that may be greater than what I had envisioned.
However, I have done it on VB before but cannot get that code back to see
what I did and how to "convert" it to tcl. I would like to make this
universal for testing some devices that I do for my employer.

> If you want to prove the code works, run a wish session interactively,
> load in the showMessage proc definition with a timeout of 10000
> milliseconds, then interatively type in several showMessage commands in
> less than 10 second intervals. You'll see the messages then.
>

I put your code in and, well the results are somewhat "random". Sometimes I
will get 50% results displayed (5 of 10 loops - usually the last 5 - will
display what I want the others do not get displayed). Other times I only
get the last result.

I am stymied! I know I am, at best, a "novice" programmer, but tcl is
kicking my &*^$%($# all over the room! It cannot be that difficult!

Anyway, any further help is greatly appreciated.

Ep



Relevant Pages

  • Re: Interpreting the colon operator
    ... I tried this by using the print statement inside the loop. ... What follows then would be a display of ... is apparently affected by the fact that matlab is aware that 'Av' ... three-dimensional matrix even though the first index is restricted ...
    (comp.soft-sys.matlab)
  • Re: Text window not displaying inside loop
    ... // Idle until the screen redraws itself, ... MSG msg; ... functionality to loop every X-seconds then checking the figures again. ... trying to display them fresh on each loop to a text box. ...
    (microsoft.public.vc.mfc)
  • Re: Text window not displaying inside loop
    ... // Release main thread for background processing ... GiveTime(); ... functionality to loop every X-seconds then checking the figures again. ... trying to display them fresh on each loop to a text box. ...
    (microsoft.public.vc.mfc)
  • Re: using a for loop to determine maximum value of an int variable
    ... With a for loop like so: ... 2145,000,000 all future increments don't generate an error. ... I'm using INT as my starting variable for exploration. ... way that I can display the value of j every, say, 10 thousand ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Text window not displaying inside loop
    ... // Idle until the screen redraws itself, ... MSG msg; ... functionality to loop every X-seconds then checking the figures again. ... trying to display them fresh on each loop to a text box. ...
    (microsoft.public.vc.mfc)