Re: Sorry, but need more help

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


Date: Fri, 23 Jan 2004 08:07:47 -0800

Thank you for the observation - others have said the same but I do not
believe it!

Running the code you gave me does what I want. However, only when I am over
the "demo.tcl" window (that is my script file name). Now to get it work
anywhere on the display?

Ep

"Cameron Laird" <claird@lairds.com> wrote in message
news:1012h9ktgl9ah31@corp.supernews.com...
> In article <5hbQb.19$wM6.22824@news.uswest.net>, ep <eps57@hotmail.com>
wrote:
> >
> >"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!
> .
> .
> .
> You work too hard.
>
> That's an observation, not an accusation.
>
> When you run
> toplevel .m
> pack [label .m.l -width 30]
>
> bind . <Motion> {
> .m.l configure -text "The position of the mouse is (%X, %Y)."
> }
> does it produce results that interest you? I didn't realize AT ALL
> before that you wanted "some kind of message box to ... display the
> changes as the user moves the pointer".
>
> There is an issue, at this level, with having Tk display the posi-
> tion of the mouse when it's not over one of the Tk application's
> windows. We'll return to that later; first I want to understand
> whether the small script above appears to you to give results that
> are in the direction you want to pursue.
>
> --
>
> Cameron Laird <claird@phaseit.net>
> Business: http://www.Phaseit.net



Relevant Pages

  • Re: SVGA, LCD, Win CE 6.0 and PB
    ... site addressing display drver issues, not to mention the source code. ... travel down thru Win CE from boot.ini to the place genrating final LCD ... I can have a desktop larger than physical screen window. ...
    (microsoft.public.windowsce.platbuilder)
  • Question about Full screen exclusive mode
    ... I use ScreenManager class that has been presented in David Brackeen's book. ... The graphics card enters the selected mode but the window content is painted only to the level of windows display mode.For example. ... After returning to the Windows, the settings dialog window is repainted with the content of the frame that is under settings dialog. ...
    (comp.lang.java.programmer)
  • Re: display array in a frame wnd
    ... I have to display results. ... The window can be used in all the program thanks to the name "source image". ... CFrameWnd* pw; ... Why is this not in an OnPaint handler? ...
    (microsoft.public.vc.mfc)
  • Re: display array in a frame wnd
    ... you have to create an app that is suitable for displaying an image. ... There would never be a need to create a frame window; it is not at all clear why such code ... I have to display results. ... Why is this not in an OnPaint handler? ...
    (microsoft.public.vc.mfc)
  • Re: Need a non-interactive service to open dialog on input desktop
    ... make remote COM calls to a remote COM object? ... account) on machine B. On NT, either of these services was able to ... interact with the user by opening the user's window station and desktop. ... When the service is started, it does not display the dialog ...
    (microsoft.public.win32.programmer.ole)