Re: How Do I RUN or OPEN found file .. Win32Lib programme ..
- Posted by Dan Moyer <danielmoyer at prodigy.net> Apr 04, 2007
- 586 views
Les Rogers wrote: > > > Hello, > > The programme from Win32Lib is openfile.exw. > > It finds whatever .. But > > will not "run" or "open" it. > > So, what is the command to have it > > Run or Open. ?? > > I do not know where to look !!!! > > Is it ... on_click "run" .. ??? > > This is from Win32Lib........... > > include win32lib.ew > object x > x = create(Window, "Test", 0,0,0,0,0,0) > x = getOpenFileName(x, "", "") > > Put in "c:\\" .. goes there .. great. > > But will not do the "click" thing !! > > Help...point me somewhere please .. but not out the back door ?? > > sincerely, > > les.r. les, Looks like, as Derek suggested, that is some kind of "stub" or experimental program, ie, the *beginning* of a demo that wasn't finished perhaps, and wasn't meant to be an actual part of the demos. What you could do is look at "generic.exw" to see how a program opens a file. First *run* the demo, to see how it works, so you can see what you should be able to expect from your efforts. Then search the program for "open", until you find "MenuOpen", which is the menu handle (I think that's what it might be called?), for the menu choice to invoke the windows dialog to give the user an opportunity to open a file. Then search for "MenuOpen", and you will find the routine that responds to the clicking of that menu choice. Read & think about that routine, and then when/if you have more questions, ask us. (the reason I suggested you search in the above fashion is because you can *see* those words IN the program right away, which is a good way to have some idea what to look *for* in the program. ie, look for things that seem like they would relate to what you're wondering about.) Dan Moyer