Hi
Now I have created draggable, resizable shapes. Then I want to create
editable text area in shapes.
First,the text area should be along with its shape, if the shape changes
size, text area also changes its size. Second, user double click text area,
the text area should show its boundary in other color.
Third, after second action, user could input text in text area
In the end , user click the area outside the text area, the boundary of text
area disappeared.
Questions below:
1 To create text area, there are shapeRegion ,TextShape to use, I want to
know which one is good to use ?
2 To add text area into shape, I will use CompositeShape, to make text area
as child of shape. But can I make shapeRegion as child of shape if I choose
shapeRegion to create text area?
3 How to make user text in text area?
When double click text area, the text area should set cursor , how to do
this? can I just use TestArea.SetText(text) ,text = Text .
4 How to make the text area in multiline? I mean, if the text reach the
boundary of text area, how to make the text over boundary begin from
another line automatically?
5 I use When creating text area, I use SetColor, and when double clicking
test area, I use GetColor to show the boundary of text area . Is that the
right way ?
Hope you can give me some advice
···
--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Questions-for-making-editable-text-area-using-ogl-tp5717210.html
Sent from the wxPython-users mailing list archive at Nabble.com.