« 回到University of Duisburg-Essen

Text field with limited amount of characters, but extendeded in notebook

組合檢視 平均檢視 瀏覽樹狀資料
相關串連 [ 前一個 | 下一個 ]
toggle
Text field with limited amount of characters, but extendeded in notebook
community graphrep attrrep documentation
答覆
2014/3/27 上午 11:41
Is it possible to build a standard text field at an object type, which only allows for a limited
amount of characters while modeling, however when opening the Notebook (by left click) offers
an extended amount of space?

RE: Text field with limited amount of characters, but extendeded in noteboo
答覆
2013/8/27 下午 1:29 作為回覆給Endrju S. & Sobhi A.
Yes this is possible in ADOxx. You can define a LONGSTRING attribute for the notebook and display only a limited number of characters in the notation implementation (i.e. GRAPHREP).
The command ATTR is used to display attribute values in the GRAPHREP. The parameter "w:" of the command defines the horizontal alignment of the attribute (left, right, center) and the maximum length of the text. The parameter "h": defined the vertical alignment of the text as well as the text height. The parameter "line-break:" defines the rules for breaking the text up into lines.
The example below defines an attribute "Description" of type LONGSTRING and breaks the text up on the representation of the object.
1
2GRAPHREP
3SHADOW off
4FILL color:lightblue
5RECTANGLE x:-2cm y:-1cm w:4cm h:2cm
6ATTR "Description" line-break: words x:-2cm y:1.5cm w:l:4cm h:b:10pt

RE: Text field with limited amount of characters, but extendeded in noteboo
答覆
2014/3/8 下午 6:34 作為回覆給Wilfrid Utz
Thanks very much Wilfrid. We realized the requirement with your help.
It was relevant for "Comment" / "Constraint" fields. The main attribute of those concepts can be formulated in natural language. So, within the model, the Comments/Constraints are being cut, but within the notebook, the whole text is displayed and can be edited.

Enclosed you can see the first test.
附件

附件: Comment.PNG (6.3k)