|Multiple textfields in AddFeature [message #1210462]
||Tue, 26 November 2013 01:44
| Soeren M
Registered: September 2011
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());
gaService.setLocationAndSize(name, 0, 0, width, 20);
Text delay = gaService.createText(shapeDelay, addedClass.getName());
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.
(Size: 1.04KB, Downloaded 103 times)
Powered by FUDForum
. Page generated in 0.04813 seconds