Re: ? re: Win32lib an onClick (+fan mail)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello SR Williamson (Sherm),


>Hello,
>New to Euphoria, and I have to say I'm very impressed. Not only is it easy
>to learn and fast, it is also small (very). And did I mention easy to
>learn?
>Also, thanks to David Cuny for his outstanding Win32lib, even if it did
>cost
>me the hours of midnight to 4 am last Saturday. Here's the ?......
>
>I'm trying to write a program that puts lots of bitmaps in a W32 window. To
>do this, I call a procedure when a button is clicked. Just for fun, I
>decided to let it put 10k 16X16 BMPs in the window. That only takes a
>couple
>of minutes, but I decided that I might like to stop it by clicking a second
>button while it's calculating the 10k random positions and posting them to
>the window.
>
>Unfortunately, that doesn't work. The button sends the onLeftClick (or
>whatever)  message to Windows, but it doesn't respond (it doesn't "click"),
>and I have no idea what kind of code to use to interrupt this 10k iteration
>WHILE loop. Can anyone help? (In the interest of space I won't post the
>code
>unless it's needed. I know that seems dumb after the unabashed gushing
>above, but I did want to say thanks. Too often thought, but too little
>performed.)
>
>Sherm

Well, if all you need to do is interupt a while loop then
all you need is the "exit" command which will immediately
exit any "while" or "for" loop. Now if the trouble is just
getting a button click to happen inside the loop that might
be a little harder, I guess you'll have to check for button
status in the loop. I dont know if Win32Lib provides a way
to check for a button's status other than by events or not.
I guess David Cuny would know.

later,
Lewis Townsend
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu