Re: Managing the hilite color of selected text

2011-09-28 Thread dunbarx
, here and at the HC forum, for that long, Craig Newman -Original Message- From: Pete To: How to use LiveCode Sent: Wed, Sep 28, 2011 4:31 pm Subject: Re: Managing the hilite color of selected text Thanks for all the suggestions. I think I have everything working now with an amalgam of

Re: Managing the hilite color of selected text

2011-09-28 Thread Pete
Thanks for all the suggestions. I think I have everything working now with an amalgam of the code suggested. Things were further complicated because I needed to drag and drop text into the field from a datagrid. Pete Molly's Revenge _

Re: Managing the hilite color of selected text

2011-09-27 Thread Terry Judd
place a colored graphic over the selectedText? I have done this, >>> and though it seems like a kluge, well, it is a kluge, it is noneTheLess >>> simple and effective. >>> >>> >>> Craig Newman >>> >>> >>> >>>

Re: Managing the hilite color of selected text

2011-09-27 Thread Pete
> On Tue, Sep 27, 2011 at 3:23 PM, wrote: > >> Pete: >> >> >> Why not place a colored graphic over the selectedText? I have done this, >> and though it seems like a kluge, well, it is a kluge, it is noneTheLess >> simple and effective. >> >> &g

Re: Managing the hilite color of selected text

2011-09-27 Thread Pete
Thanks Terry, I pretty much have that logic in there now. My remaining problem is dealing with the tab key which I documented in another post on this thread. Is it just me or does seem like a lot of work to implement a pretty standard user interface issue? LC appears to remember the insertion po

Re: Managing the hilite color of selected text

2011-09-27 Thread Pete
gt; > > > > > -Original Message- > From: Pete > To: How to use LiveCode > Sent: Tue, Sep 27, 2011 12:21 pm > Subject: Managing the hilite color of selected text > > > LC does not retain the hilite of any selected text in a field once you > click

Re: Managing the hilite color of selected text

2011-09-27 Thread Terry Judd
Pete - try something like this in your field script local pSelection on mouseLeave if word 2 of the selectedField = the number of me then put the selectedChunk into pSelection end if end mouseLeave on openField if pSelection is not empty then set the backgroundColor of pSele

Re: Managing the hilite color of selected text

2011-09-27 Thread Dave Cragg
On 27 Sep 2011, at 21:19, Pete wrote: > So far I have tried to use an openField handler to achieve this. Right now, > I'm just trying to deal with the situation where the user clicks back into > the field, by setting the background color of the field to either empty or > white, but neither metho

Re: Managing the hilite color of selected text

2011-09-27 Thread dunbarx
Subject: Managing the hilite color of selected text LC does not retain the hilite of any selected text in a field once you click on another control and does not restore it when you click back into the field again. I'm hoping to find a generalised solution to this. In other applications, it

Managing the hilite color of selected text

2011-09-27 Thread Pete
LC does not retain the hilite of any selected text in a field once you click on another control and does not restore it when you click back into the field again. I'm hoping to find a generalised solution to this. In other applications, it seems that the standard way of working is: - change the h