Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [EMF Forms] Scroll-bars and textarea problems([EMF Forms] Scroll-bars and textarea problems)
[EMF Forms] Scroll-bars and textarea problems [message #1720583] |
Tue, 19 January 2016 13:51 |
Teohari Simona Messages: 40 Registered: September 2015 |
Member |
|
|
Hi guys,
I work with ECP SDK 1.7.2.
I want to describe various problems that appear in EMF forms.
Maybe you can help with these problems.
- I created a view model which includes multiple collapsible groups. There is a lot of information within them. The problem is if the groups are collapsed, then a vertical scroll-bar will not appear, hence it will not let me see the whole information. (but if the groups are not collapsed, then the vertical scroll will appear). See first and second attached pictures.
- I created another view model to show two fields "name" and "value" in an Horizontal layout -> "value" attribute has property multi-line=true in genmodel. However, the textarea is very long (it includes all info in one row) and it generates an horizontal scrollbar. How can I make the textarea shorter?
See third picture.
- Last problems is related to some fields that are not visible to the user. See attached picture 4. In the second collapsible group "Event based constraint", there is a combo-box beside "event offset" that actually contains some options. In the last row of this image there is actually an element present between the "Minimum distance" and the next textfield. If I drag at maximum the separator between the tree view and the EMF form it will show these fields. See image number 5.
Are these known problems?
Thank you very much,
S.
-
Attachment: Capture1.PNG
(Size: 20.77KB, Downloaded 189 times) -
Attachment: Capture2.PNG
(Size: 35.54KB, Downloaded 197 times) -
Attachment: Capture3.PNG
(Size: 16.02KB, Downloaded 190 times) -
Attachment: Capture4.PNG
(Size: 37.23KB, Downloaded 200 times) -
Attachment: Capture5.PNG
(Size: 39.92KB, Downloaded 171 times)
|
|
| |
Re: [EMF Forms] Scroll-bars and textarea problems [message #1721250 is a reply to message #1720813] |
Tue, 26 January 2016 07:14 |
Teohari Simona Messages: 40 Registered: September 2015 |
Member |
|
|
Hi Eugen,
Thank you for your answer, sorry for the delay.
Regarding the long text field, I had added a breakpoint and this code:
if (editSupport.isMultiLine(getVElement().getDomainModelReference(), getViewModelContext().getDomainModel())) -> returns TRUE, so the multi-line is used.
But the thing is that this long textfield has at the end of it up and down arrows and if I write a lot of text I can press on the arrows. More to that, if I deset the value -> "No text set! Click to set text", I close the view, I reopen the view (it is still a textfield but its a lot shorter), I write a lot of text and then I move in any direction (left or right) the separator between the tree view and the EMF Forms, the text area appears with multi line.
But then, if I open again the view, the textarea is there but is long again. It is depending on the text somehow. If I write a lot of \n (enter) in the text, I save and renter into the view, the field is a lot shorter.
In the same ECP application I have another text-area and that one works perfectly, making this word wrap available, even if I do not insert \n (enter).
Regarding the invisible controls, I do not have a custom control, so I cannot set the width for the fields. I work with horizontal layouts. See attached files. (DistanceConstraintView.png and DistanceConstraintView.txt). Is there something I can change, to make the fields visible?
Thank you,
S.
|
|
| | |
Goto Forum:
Current Time: Mon Sep 23 15:01:56 GMT 2024
Powered by FUDForum. Page generated in 0.04206 seconds
|