On Sep 24, 2006, at 6:26 PM, Ryan Dary wrote:
It wouldn't be too difficult to just make a canvas-based control
that does what a static text does, and then add the selection
functionality. Let me know (off list) if you need any help.
Drawing the control, no it wouldn't be hard at all. What is more
difficult is tracking selection for individual characters...
especially in cases where:
(g.StringWidth("i") + g.StringWidth("t")) <> (g.StringWidth("it")
I cannot imagine how many possible variables it would be to make a
text editor based on a Canvas. I know it can be done because I have
seen other REALbasic applications with Canvas-based editors. If I
get character selection working, the only thing missing from a text
editor would be the keyboard input.
So how would you do it?
Would you start at the beginning of the line and test StringWidth for
the phrase up until that character? And then the first character
past "x" is the clicked character?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>