Newsgroups: comp.sys.mac.hypercard
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!ghost.unimi.it!aprile
From: aprile@ghost.unimi.it (Walter Aprile)
Subject: Re: icon in a textfield
Message-ID: <1991May29.143712.1138@ghost.unimi.it>
Organization: Computer Science Dep. - Milan University
References: <1991May23.163209.10145@magnus.acs.ohio-state.edu>
Date: Wed, 29 May 1991 14:37:12 GMT
Lines: 25

salter@magnus.acs.ohio-state.edu (John E Salter) writes:


>Is it possible put an ICON in a scrolling field?  I small Icon thats
>part of the text and scrolls with it.  Is their a font of ICONs?
>.

If you dont't feel like using a special font (which I believe is the better solution) you should prepare yourself for some sweat work.

That's to say:   
1) you keep a list of all the ICON buttons you put in the field
2) every time the user scrolls the field you check what icons are now
invisible (that's to say, they scrolled up or down out of the field) and 
what icons are visible. Then you display the latter at the proper screen
location.

Remember, you have to keep a hidden description of button names ( or IDs), horizontal and vertical offsets.

Kludgy ? Yes, and slow. But it works: anyway, I think you will be better off by using a special font, with icons you like, intercepting the mouseUp and polling the clickedWord, Chunk or whatever.

Hope this will help,

Address is: aprile@ghost.unimi.it 

mouseup 
