Am 2012-07-24 19:35, schrieb James Turner:
> Thomas, one issue I can guess at (though PLIB is also really bad at
> it, and osgWidget is not much better!) - text selection. Do you think
> you'd be able to handle a blinking insertion point and a standard
> draggable text selection area in this approach? Obviously it might
> need some additional C++ helpers but that's okay since text-editing
> is a pretty specialised behaviour.

Yes :)

http://youtu.be/CIS8UyuJLgM

I have just added some property change listeners to get the position of
the next character at a given position. The highlighting happens only
from Nasal. What is currently missing is the possibility to also change
the color of the selected text and to actually get the selected text,
but this shouldn't be too hard to implement.

> One goal of mine for the GUI is to get platform native copy-and-paste
> working, BTW ;)

This has already been on my wish/todo list :P

> Obviously Thomas knows the Canvas code since he created it [...]

Currently documentation is not too detailed, but looking at the
different demos and maybe also the Nasal API and source code should
help. If not, don't hesitate to ask :)

Regards,
Tom

-- 
Thomas Geymayer  www.tomprogs.at / C-Forum und Tutorial: www.proggen.org
------------------------------------------------------------------------
      Student of Computer Science @ Graz University of Technology
------------------------------- Austria --------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to