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

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

Hi Sherm,

I guess there must be some reason this won't work, or someone would have
suggested it, but here's what I would have tried:

Make an integer variable to serve as a true/false flag,
("Flag_StopDisplay"), & initialize it to 0; make a procedure to respond to
the "stop" button click event that sets the flag to 1; put a test for that
flag in your while loop, with "exit" if the flag = 1 (with reset the flag to
0 before the exit command).

I guess it wouldn't stop your BMP display in the middle of putting up a
specific picture, but I would think it would stop at the beginning or end of
one, and they're small enough that that might be serviceable??

Dan Moyer

Sherm wrote:

><snip>
>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?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu