Re: Win32lib dialogs within proc's
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Mar 10, 2000
- 462 views
OK, I think I gave a bad example. Basically, I was using the getOpenFileName dialog as an easy way to get some input from the user in a generic sense. I guess what I'd like to do is be able to create my own dialogs that could be used in a similar manner. I think this works because you hand over control to windows using the common dialog, which does it's thing and then gives control back to Eu. Basically, I'd like to be able to 'emulate' that ability. I haven't been able to think of any nice solutions to this. I guess what I'd need is another event loop, like by nesting a call to WinMain within a call to WinMain. I guess that would require some sort of 'namespace' architecture on the part of win32lib, to keep controls of the various event loops separate. Hmmm. This would help me with something else that's been bothering me with windows programming. I've found that I have to make a lot of vars global (at least local, and not private to a routine), and use procedures everywhere to manipulate vars rather than cleaner functions and less global vars--since we don't know when the user will trigger any given event (eg, Button_onClick) and send us back to the main flow of our program. Matthew W Lewis > -----Original Message----- > From: Grape_ Vine_ [mailto:g__vine at hotmail.com] > > I am working on a project that sounds like it is close to > what you are > doing, Can you give me a clearer idea as to what it is you are doing? > You used > > file = getOpenFileName(Main, "", {"All Files", "*.*"} ) > > as a example, IF you wanted to use a certian file name from > another part of > your program that would be easy, you change the code to > > object file_name > tons of code > file = getOpenFileName(Main, "file_name", {"File > description", "file_name"}) > > Since i dont know just what your needs are my example is most > likely not > what you need >