- Posts: 22
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Setting visual attributes on edittext not working
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 7 months ago #9307
by marco.klein
Setting visual attributes on edittext not working was created by marco.klein
Hi support,
we've been trying the new beta features . The field flag method works like a charm, but somehow, we dont get the hang of the visual attribute methods like strokecolor fillcolor a.s.o
Sometimes, the field gets updated after rerendering, sometimes it does not.
What we do is the following:
this.annotation.SetStrokeColor(color); // Color.RED
this.renderer.rerender();
Should be fairly enough, is it?
Btw, setting visual attributes does not work at all if we don't call this.annotation.SetEditText(this.annotation.GetEditText()); at initializing the document. Checkboxes currently dont react at all because they dont have SetEditText...
What to do about this? Which method do we need to call when trying to make this possible? is there some kind of initialize?
Kindest Regards
Marco
we've been trying the new beta features . The field flag method works like a charm, but somehow, we dont get the hang of the visual attribute methods like strokecolor fillcolor a.s.o
Sometimes, the field gets updated after rerendering, sometimes it does not.
What we do is the following:
this.annotation.SetStrokeColor(color); // Color.RED
this.renderer.rerender();
Should be fairly enough, is it?
Btw, setting visual attributes does not work at all if we don't call this.annotation.SetEditText(this.annotation.GetEditText()); at initializing the document. Checkboxes currently dont react at all because they dont have SetEditText...
What to do about this? Which method do we need to call when trying to make this possible? is there some kind of initialize?
Kindest Regards
Marco
10 years 7 months ago #9308
by radaee
Replied by radaee on topic Setting visual attributes on edittext not working
the method not applied to CheckBox, it is text-box only.
it is not enough, only invoke Annotation.SetStrokeColor(color);
if line width is 0, there are no borders to shown.
it is not enough, only invoke Annotation.SetStrokeColor(color);
if line width is 0, there are no borders to shown.
- marco.klein
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 22
- Thank you received: 0
10 years 7 months ago #9309
by marco.klein
Replied by marco.klein on topic Setting visual attributes on edittext not working
okay, good to know.
the border width got set to 1 before.
it does not work as well for:
this.annotation.SetStrokeColor(color);
this.annotation.SetStrokeWidth(thickness);
this.annotation.SetFillColor(color);
this.annotation.SetEditTextColor(color);
so all of them.
the border width got set to 1 before.
it does not work as well for:
this.annotation.SetStrokeColor(color);
this.annotation.SetStrokeWidth(thickness);
this.annotation.SetFillColor(color);
this.annotation.SetEditTextColor(color);
so all of them.
Time to create page: 0.406 seconds