To keep the selection of a textfield visible while the focus is on another control?

Terry Judd tsj at unimelb.edu.au
Sat Jun 5 23:04:36 EDT 2010


On 6/06/10 11:38 AM, "G.Wolfgang Gaich" <gwolfgang at gaich.de> wrote:

> Hello Terry,
> 
> thank you for the tip. But if I set the backcolor for the selectedchunk,
> blank lines are not affected like they are when the user select several
> lines. Yes, I'm a bit fussy when I build an UI.

Yes - that's clearly a deficiency of the backcolor approach. There are other
methods you could probably try (using overlaid snapshots based on the
formattedRect for example) but they are out and out hacks.

Terry...

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne



> 
> Wolfgang
> 
> 
> Am 06.06.2010 00:17, schrieb Terry Judd:
>> On 6/06/10 12:02 AM, "G. Wolfgang Gaich"<gwolfgang at gaich.de>  wrote:
>> 
>>    
>>> One way I tested was to store the selectedChunk in a custom property on
>>> selectionchanged and when the user has entered the textsize in the
>>> combobox and presses return or enter the textsize and the selection for
>>> the selectedchunk (I stored in the custom property) of the field is set.
>>> But there is a period of time the user doesn't see his selection in the
>>> textfield.
>>> 
>>> Is there a way to keep the selection of a textfield visible while the
>>> focus is on another control?
>>>      
>> Hi Wolfgang - You can use the backcolor to achieve an 'authentic' selection
>> effect...
>> 
>> Set the backcolor of [chunk expression] to the hiliteColor
>> 
>> Terry...
>> --
>> Terry Judd | Senior Lecturer in Medical Education
>> Medical Education Unit
>> Faculty of Medicine, Dentistry&  Health Sciences
>> The University of Melbourne
>>    
>>> Thank you very much in advance.
>>> 
>>> Wolfgang
>>>      
>> _______________________________________________
>> 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
>>    
> 
> _______________________________________________
> 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