1. HELP ME PLEASE. Having problems w/my tool bar library for
- Posted by Mike Hurley <MHsSoft at AOL.COM> Jul 06, 1999
- 514 views
Somebody please look at this code and try to fix it or give me an idea on what could be wrong, etc. It isn't commented, but is pretty easy to figure out. If you fix it, please send only the toolbar.ew file zipped or unzipped. Thanks all if you try, Mike Hurley PS. There are 4 or 5 things that I know of that are wrong with the library. The zip file includes the library, Win32Lib, and all the needed bitmap files.
2. Re: HELP ME PLEASE. Having problems w/my tool bar library for
- Posted by David Cuny <dcuny at LANSET.COM> Jul 06, 1999
- 469 views
- Last edited Jul 07, 1999
Mike Hurley wrote: >Somebody please look at this code and > try to fix it or give me an idea on what > could be wrong, etc. for k=1 to length(bars) by 1 do if y>=(k-1)*22 and y<=((k-1)*22)+22 then tid=bars[k] exit end if return 0 --didn't happen on one of the bars, notice the 'exit' above end for the problem is that the 'return 0' causes the loop to exit prematurely if the first item isn't a match. this is the case in both of your hit tests. something like this will take care of it: tid = 0 for k=1 to length(bars) by 1 do if y>=(k-1)*22 and y<=((k-1)*22)+22 then tid=bars[k] exit end if end for -- was something hit? if tid = 0 then return 0 end if Pretty spiff! No doubt I'll be bugging you for help on emulated controls for Llama. -- david cuny