:>David Bovill wrote: :>> :>> I have a field in a stack and a substack that I open as a palette. I want to :>> know what field has the selection point inside it when I click on the :>> palette, and having problems help appreciated: Jacqueline Landman Gay wrote: :> :>To compensate, I had to do an ugly work-around. Maybe someone else knows :>a better approach, but this seems to work: I raised the same issue with Kevin a while ago and he responded; The problem is that the selection is lost when you switch to the palette if only an insertion point is present and not a selection. This is a known issue and we'll try to get it resolved soon. In the mean time, you may be able to work around this problem in the development UI by using the unsupported gREVChunkStore variable (we had this same problem so implemented this as a workaround!). My own comments are: 1. If I am not mistaken, exactly the same situation prevails in HyperCard. If only an insertion point is present a palette button doesn't get the selection, but if any chars are selected the btn does get the selection. 2. I was nervous about implementing Kevin's suggestion--same would apply to Jacque's. My palette does things to the selectedLine. Sometimes these are destructive. When you can actually see the selection there is no problem. When the handler works on the global, the wrong selection could at some time be in the global. Maybe not in a perfect world, but I am nervous about it with my level of skills. Therefore, I have decided simply to live with the situation and force the user to make a selection of one or more characters--same as I did with HyperCard. Comments? Bruce -- Bruce Lewis Lewis & Collyer 160 John Street, Suite 401 Toronto, Ontario Canada M5V 2E5 (416) 598-4357 FAX (416) 598-1067 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Archives: http://www.mail-archive.com/[email protected]/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.
