activating palette loses textselection?

David Bovill david at openpartnership.net
Wed Apr 2 13:08:37 EDT 2008


OK - no answer - but it only happens when the target of the text-palette is
a non-list field? List fields seem OK - so maybe there is a clue in the
properties there?

On 02/04/2008, Klaus Major <klaus at major-k.de> wrote:
>
> Hi Richard,
>
>  Klaus Major wrote:
> > >
> > >  I have a couple of palettes and toplevel stacks open here.
> > > > Now when I select some text in a field of a non palette stack
> > > > and click on a button/list field in a palette, the selection
> > > > disappers,
> > > > so "the selectedchunk" is empty in that case.
> > > > Too bad if you are working on a text-formatting palette window :-)
> > > > BUT this does not happen with all palettes (only with the text
> > > >  formatting thing, of course!)?!
> > > >
> > > Which palettes does this not happen with?
> > >
> > My "2lzs2" palette for instance.
> >
>
> I found out what causes this behaviour:
> If the palette contains ANY field, then the selection disappears!
>
> BUT, I does not really disappear, the selection is just not visible!
> If I activate the stack with the original selection again, the selection
> becomes visible again.
>
>  I've not been able to find a good solution for my own text formatting
> > > palette, so on the recommendation of some of the folks here I store the
> > > current selection when the mouse enters the palette, then restore the
> > > selection when they click.  Dumb, I know, but it gets me through the day.
> > >
> > I already store "the selectedchunk" but "restoring" it again is a good
> > idea :-)
> >
>
> But does not work, see above :-/
>
> Any hints on how to create a text-formatting palette that keeps the
> original selection
> visible are very welcome.
>
> Of course I store the selectedchunk and so can modify it, bit I don't
> think it is a good
> user experience when text changes while there is no VISIBLE selection.
>
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list