Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!pasteur!ucbvax!hplabs!hpda!hpdslab!hpiacla!jimg From: jimg@hpiacla.HP.COM (Jim Garrison) Newsgroups: comp.sys.amiga Subject: Gadgets question Message-ID: <4830003@hpiacla.HP.COM> Date: 26 Jan 88 17:08:14 GMT Organization: Hewlett Packard Lines: 49 Howdy! I am a novice Amiga and 'C' programmer and I've been having this problem getting Gadgets to work right. I'd really appreciate it if anyone out there could point me in the right direction. I am also having a problem with ASDG's FaccII. Problem #1 -- Gadgets I am trying to use Gadgets to request some information in my program and a couple of the Gadgets I am using need to be Mutually exclusive. So I am setting up the MutualExclude field in my gadgets appropriately (I've used this successfully on Menus before). I set the Flags field to GADGHCOMP | SELECTED on my default Gadget and to just GADGHCOMP on the others. When I run the program, and select one of the other gadgets which should de-select the default gadget, it doesn't work. What happens is I get an IDCMP message that I selected the new Gadget and it becomes highlighted, but the default Gadget is also still highlighted, instead of being de-highlighted. I am wondering does the the MutualExclude field for Gadgets work the same as it does for Menus? I decided to write my own routine which checks the MutualExclude field of the Gadget that was selected, and sets the excluded Gadgets Flags fields to just GADGHCOMP, then it calls RefreshGadget. This causes the same results with the exception that it seems to toggle Gadgets that aren't mutually excluded (their Flags fields haven't been messed with). I know I'm doing something wrong here and if somebody can tell me what or tell me of some Amiga reference that has some useful information about Gadgets, I'd be really grateful for the help. Problem #2 -- ASDG FaccII I'm using a 1000 with 1MB total memory and setting up FaccII with 700 buffers. I compile using Lattice 4.0 and everything works fine for awhile. Then suddenly, after 5-10 successful compiles I get a "Cannot Execute LC2" message and my compile aborts. Repeated attempts yield the same results. The only way I can seem to fix this is to turn off FaccII, then my compiles complete with no problems. Has anyone else seen this problem? Any suggestions? Increasing/decreasing FaccII's buffers doesn't seem to help, rebooting the system does help (for 5-10 more compiles). It doesn't appear that I am running out of memory (still at least 68K left). Thank you, Jim Garrison "I know you think you understand what I said, but what I said was not what I meant!"