Problem with selectedChunk in Windows

MisterX b.xavier at internet.lu
Sat Nov 13 09:40:32 EST 2004


Wouldn't it be wiser to do this when entering the field and reset it back
when you exit the field? This would permit both behaviors...

A guide to cross platform changes like this would be interesting. This
important information is rather dispersed across all object references in
the documentation. I hope I didn't miss something like it in the docs but
don't remember seeing it...

cheers
Xavier


> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Jan Schenkel
> Sent: Saturday, November 13, 2004 08:28
> To: How to use Revolution
> Subject: Re: Problem with selectedChunk in Windows
> 
> --- "Bruce A. Pokras" <macstacks at earthlink.net> wrote:
> > I have  a script that uses the selectedchunk to locate the 
> cursor in a 
> > field so that it can add some text at the cursor location. 
> This works 
> > fine in a standalone under Mac OS 9. However, it totally fails in a 
> > Windows standalone.
> > 
> > To test this out, I added an "answer" dialog to tell me what the 
> > selectedChunk was returning. On the Mac, it gave the 
> expected "char # 
> > to # of cd fld x". Under Windows, it returned empty.
> > Bugzilla showed
> > two "selectedChunk" bugs, but one was for Mac, only, and the other 
> > related to pasting htmlText.
> > 
> > Anyone have a workaround?
> > 
> > Regards,
> > 
> > Bruce Pokras
> > 
> 
> Hi Bruce,
> 
> Your buttons probably have the 'traversalOn' property set to 
> true -- on MacOS, buttons do not receive the eyboard focus, 
> but on Windows they do : when you click on a button, the 
> previous selection is lost.
> The quick solution is to set the 'traversalOn'
> property to false for all your buttons.
> 
> Hope this helped,
> 
> Jan Schenkel.
> 
> =====
> Join us at the European Revolution Conference November 14-16, 
> MALTA. ~ http://TechieTours.com/Rev/
> 
> =====
> "As we grow older, we grow both wiser and more foolish at the 
> same time."  (La Rochefoucauld)
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list