Text property of PText.

9 views
Skip to first unread message

Neha Bajaj

unread,
Mar 25, 2013, 3:59:15 PM3/25/13
to Piccolo2D Users
Hi,

I am new to Piccolo, just started with it. I am basically trying to
get the text of PText in the doubleclick property of PText. But I am
not able to get the text of PText.

I am using c#.net.

please reply asap.

tanveerakl

unread,
Mar 26, 2013, 2:24:46 AM3/26/13
to piccolo...@googlegroups.com
Please try this...

In Form_Load event:

    canvas.Camera.DoubleClick += new PInputEventHandler(Camera_DoubleClick);


    private void Camera_DoubleClick(object sender, PInputEventArgs e)
    {
        PText pt = e.PickedNode as PText;
        if (pt != null) MessageBox.Show(pt.Text);
        e.Handled = true;
    }


Regards
-Tanveer




--
You received this message because you are subscribed to the Google Groups "Piccolo2D Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to piccolo2d-use...@googlegroups.com.
To post to this group, send email to piccolo...@googlegroups.com.
Visit this group at http://groups.google.com/group/piccolo2d-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



NEHA BAJAJ

unread,
Mar 26, 2013, 2:43:24 AM3/26/13
to piccolo...@googlegroups.com

Thanks a lot Tanveer.

Neha Bajaj

Reply all
Reply to author
Forward
0 new messages