[Xerte] Inserting Special Characters

Dave Burnett d_b_burnett at hotmail.com
Fri Jan 8 15:50:55 GMT 2010


Maybe a global func that holds the tf id of the last tf with focus?

<pseudo>
if object with focus=TF {
last_active = TF ID
}
</pseudo>


> Date: Fri, 8 Jan 2010 15:27:12 +0000
> From: Julian.Tenney at nottingham.ac.uk
> To: xerte at lists.nottingham.ac.uk
> Subject: [Xerte] Inserting Special Characters
> 
> I want to have anumber of buttons insert special characters into a
> textfield. How can I get the textfield that is currently selected when I
> click a button?
> 
> If I debug (Selection.getFocus()) after clicking the button, I get - of
> course - the button, as I just selected it by clicking it. How can I
> know the textField that has / did have the caret in it, and the position
> of the caret?
> 
> Previously I've done this by having the textfield update some variables
> onChange, but this isn't an option in this case.
> 
> J
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390706/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100108/19ffb1a9/attachment.html


More information about the Xerte mailing list