SLMYQ@USU.BITNET (04/20/88)
There seems to be a problem with string gadgets. When you select one, do anything with it, and press return, then the program gets the GADGETUP message, it doesn't like your input and decides to change the contents of the gadget, it RemoveGList()s it, changes the string, AddGList()s it, and RefreshGList()s it, guess what? The cursor stays there, but it isn't actually still selected because if you click outside of the gadget the cursor stays there. Nasty, and I can't figure out how to fix it. (BTW, if you want a demonstration, I believe the "Path" gadget in DPaint II has that problem.) Bryan Ford (SLMYQ@USU.BITNET) P.S. I really don't want to be nasty and display the text directly.
cmcmanis%pepper@Sun.COM (Chuck McManis) (04/22/88)
In article <8804201611.AA17245@jade.berkeley.edu> SLMYQ@USU.BITNET writes: > Bryan Ford (SLMYQ@USU.BITNET) Bryan reports on a bug with string gadgets, and I would like to say that it is a 'known' bug as of about a month ago it was reported/acknowledged on BIX in the amiga.dev/bugs topic. Some background : When you have a string gadget, and it is in a _Requester_ and you change the text programatically, and then Refresh the gadget, the cursor reappears. The workaround is to turn off the flag GADGHCOMP in the Flags variable, (which disables displaying the cursor), Refreshing the gadget, and then putting GADGHCOMP back in. Note if you leave GADGHCOMP unset then even when the gadget is selected it won't have a cursor. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.