From Adam Dawes · 1996-04-15 00:45 · #75609 in AMOS_ECHO
In reply to Another problem by Ross Nicoll
Hi Ross!
RN>>> Another little problem. With hotkeys, when the hotkey for a gadget is
RN>>> pressed, it looks good if the gadget looks like it's been clicked on.
RN>>> Is there any easy way to do this, or do I just change it so it looks
RN>>> clicked and redraw?
AD>> Despite argument from the contrary that is /bound/ to appear, there's
AD>> no system-legal way to achieve exactly what you want. However, you
AD>> could get around it via one of the following ways:
RN> So removing the gadget, swapping the border structs, adding it,
RN> waiting, removing, swapping and adding back again wouldn't work?
Aha, I had assumed you were using gadtools buttons. My apologies! I have to admit I've not directly used Intuition gadgets very extensively, but I don't see any reason why you shouldn't be able to do what you suggest there! :)
#include <stdio.h>/*Adam Dawes,ad32@brighton.ac.uk,Adam Dawes@2:441/93.5*/
int main(){char d[]="DEICEHIBEAHAJBJBJAJIAEFFHAHJAHJAHJHJIECHAHKGHFGHCGII"
,s[]=" /-)| \\_",*p=d,c;s[5]=10;while (*p){c=*p++^=64;if(c<5)for(;c>0;c--)
putchar(*s);else putchar(*(s+c-4));}return(0);}/*C sig by Adam Dawes '95*/
--- Spot 1.3a #1051
* Origin: Tourist, Rincewind decided, meant "idiot". (2:441/93.5)