1. Win32Lib question
- Posted by "Bruce M. Axtens" <bruce_axtens at SIL.ORG> Mar 24, 1999
- 453 views
Dear Euphorians Using Win32Lib, under NT 4.0, how do I check whether a window is open and/or a process is running. I have two processes 'START'ed from a .CMD file, one called "Router Reader" and the other "Router Sender". I want to know when both of these windows/processes have closed themselves. Sincerely, Bruce M. Axtens. <bruce.axtens at sil.org>
2. Win32Lib question
- Posted by Brian Jackson <bjackson at 2FARGON.HYPERMART.NET> Jul 29, 1999
- 461 views
Hi all! I'm having a problem in Win32Lib. What I'd like to do is create a set of dynamic menu items (by dynamic I mean that menu items will be created and destroyed many times in the course of a program). So far I haven't had any luck destroying menu items. deleteObject() and closeWindow() don't seem to work. Is there some other way to destroy an object (perhaps using sendmessage or something similar)? Here is some sample code to help demonstrate my reasoning: global sequence ViewMenuItems -- a sequence of integers generated by -- the Win32Lib create() function sequence LOTTATTM -- a list of things I want to add to -- a Menu ViewMenuItems = {} LOTTATTM = {} ... procedure build_menu_items() -- first destroy the current list of Menu Items for i = 1 to length(ViewMenuItems) do destroyObject(ViewMenuItems[i]) -- THIS DOESN'T WORK! HELP PLEASE!!! end for ViewMenuList = {} -- now build a new list for i = 1 to length(LOTTATTM) do ViewMenuList = append(ViewMenuList, create(MenuItem,sprintf("%s",i+48) & " " & LOTTATTM,0,0,0,0,0)) end for end procedure
3. Re: Win32Lib question
- Posted by David Cuny <dcuny at LANSET.COM> Jul 29, 1999
- 474 views
Brian Jackson wrote: > destroy a menu? Look at the Win32 functions DestroyMenu and DeleteMenu. Keep in mind that Win32Lib isn't designed to delete items, because it uses fixed indexes. -- David Cuny