From: The D. <the...@bl...> - 2005-07-29 18:53:26
|
Point taken about the modal dialog being remade locally on demand. I had been doing that before, and was just reconsidering making it global as it didn't appear to be destroyed, and maybe needed no rebuilding, just reshowing. I'll return it to the place it's needed though, as it's neater that way. That SetFocus() was the wrong one though. You added it to the dialog that works, and I already said that SetFocus() wasn;t solving things, although it appears as if it ought to... That dialog works anyway, somehow, because of the preceding FilePane dialog I think, but I don't know why it makes a difference unless it's something to do with returning focus to the rest of the program. If you add that SetFocus() after the other ShowModal instead, it won't stop that other dialog from failing to respond to any first click. On the other hand, if this doesn't happen for you, it might be something OS specific. It's certainly repeatable here with brutally simple regularity. I can't do anything to shift it.. :) I was hoping you might say something more about that caveat emptor directory idea. I think it's a good way to make a script available. This is all so new, that in the absence of any documentation other than the source files, surely any kind of working script is worth preserving and distributing intact, so that others can learn from it. If it works, coding style is surely secondary, and no-one's going to confuse it with the formally released samples. Also, if this doesn't happen, it might be rather difficult to persuade anyone else to contribute... Crow. |