errant IDE messages

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Apr 27 12:16:58 EDT 2005


Hi Tom,

You could try to lock the messages?

Le 27 avr. 05, à 18:13, Thomas McGrath III a écrit :

> I have a piece of code that had it's start from a mouseDown handler 
> (hint - this starts the problem) BUT it seems that while various code 
> is running that when it gets to this part and calls cResetGrayIcons 
> that it takes a break and goes else where.
>
> on cResetGrayIcons
>   global gTheBKeys
>   repeat for each line f in gTheBKeys -- Reset -- this makes all 18 
> gray
>     set the visible of image f to true
>   end repeat
> end cResetGrayIcons
>
> First it starts the repeat structure and after 3 or 4 rounds it then 
> pauses (at least in debug mode it feels like a pause) and then it goes 
> to a mouseEnter code and then it goes to a mouseMove handler and then 
> it comes back to finish the repeat structure. I view this as errant 
> behavior since it is right in the middle of a handler.
>
> 1. I don't know if it is starting the repeat again or if it is picking 
> up where it left off?
> 2. I don't want it to do this since I am tracking a latency in my code 
> and this is suspect?
> 3. For now I commented out the mouseEnter (I am considering getting 
> rid of it completely) and it now just goes to mouseMove.
> 4. I need the mouseMove to keep my window moveable/dragable, Is there 
> another way to keep a window moveable?
>
> This is my window moveable code:
> on mouseMove x,y
>   if not the uAllowDrag of this stack then exit mouseMove
>   put 1 into M
>   set topLeft of img 1 to \
>       M * (- item 1 of the screenMouseLoc + item 1 of the clickLoc),\
>       M * (- item 2 of the screenMouseLoc + item 2 of the clickLoc)
>   set the topLeft of me to \
>       left of me + x - item 1 of the clickLoc,top of me + y - item 2 
> of the clickLoc
> end mouseMove


Best regards,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
----------------------------------------------------------------
Web site		http://www.sosmartsoftware.com/
Email		eric.chatonet at sosmartsoftware.com/
Phone		33 (0)1 43 31 77 62
Mobile		33 (0)6 20 74 50 86
----------------------------------------------------------------



More information about the use-livecode mailing list