Multiple textfields in AddFeature [message #1210462] |
Tue, 26 November 2013 01:44 |
Soeren M Messages: 77 Registered: September 2011 |
Member |
|
|
Hey all,
I want two editable textfields in my Shape(attachment), so I've created it like this:
...
Shape shapeName = peCreateService.createShape(containerShape, false);
Shape shapeDelay = peCreateService.createShape(containerShape, false);
// create and set text graphics algorithm
Text name = gaService.createText(shapeName, addedClass.getName());
name.setValue("name");
gaService.setLocationAndSize(name, 0, 0, width, 20);
Text delay = gaService.createText(shapeDelay, addedClass.getName());
delay.setValue("delay");
gaService.setLocationAndSize(delay, 0, height - 20, width, 20);
IDirectEditingInfo directEditingInfo = ...
Is that the correct way? And if so, how do I edit both?
With the DirectEditingFeature I am able to select on by one, but just the upper textfield gets updated, even if I edit the lower one.
I am a bit confused that I didnt find sth simliar, but maybe my search skills are just bad.
Thanks
-
Attachment: asd.png
(Size: 1.04KB, Downloaded 182 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03499 seconds