|
|
Re: Width of direct editing drop-down listboxes [message #643969 is a reply to message #643777] |
Wed, 08 December 2010 20:42 |
Volker Wegert Messages: 182 Registered: July 2009 |
Senior Member |
|
|
"Michael Wenz" <michael.wenz@sap.com> writes:
> "Volker Wegert" <mail@volker-wegert.de> wrote in message
> news:84hbf1jzqq.fsf@zak.home.volker-wegert.de...
>> I have a few cases where I need to display a drop-down listbox using a
>> direct editing feature where the visual element itself is smaller than the
>> listbox has to be to display the content text. While the dropped-down list
>> is wide enough to show the entire text of the list entries, the box itself
>> seems to be set to a fixed width so that the beginning of the text is
>> chopped off. See http://imagebin.ca/view/BpdPShmq.html for an example - the
>> list of values is OK, but the listbox itself is not wide enough. Is there a
>> way to change this?
> The field itself is as large as it is defined in the diagram. You might use
> a layout feature to adapt the width of the text drop-down field to the
> length of the displayed text.
In the example above there is no text field and no displayed text in the
diagram element. It's a checkbox of a dialog (actually a dynpro :-))) model
that contains no text, and I'm using direct editing to select the data field
this checkbox is linked to. For my use case, it would be great if the direct
editing feature had a way to influence the size of the editor control. From
what I can see, the ideal point to plug this in would be the
TextCellLocator. There is a similar logic for text fields, using
def.stretchTextfieldToFitText(). I have tried this in a local copy of
Graphiti, and it works... Do you want me to submit a patch?
Thanks
Volker
--
* Volker Wegert * http://www.volker-wegert.de/contact *
"Programmieren ist ein Handwerk mit ganz wenigen kreativen Elementen. Die
Tatsache, dass die meisten Programmierer sich als Künstler verstehen, sorgt
davor, dass wie derartig viel nutzlosen, dysfunktionalen Ballast haben."
(L. Donnerhacke)
|
|
|
Re: Width of direct editing drop-down listboxes [message #644272 is a reply to message #643969] |
Fri, 10 December 2010 10:19 |
Michael Wenz Messages: 1931 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
Not sure if I fully understood your scenario, but yes, please feel free to
provide a patch.
Michael
"Volker Wegert" <mail@volker-wegert.de> wrote in message
news:84pqtcyp2b.fsf@zak.home.volker-wegert.de...
> "Michael Wenz" <michael.wenz@sap.com> writes:
>> "Volker Wegert" <mail@volker-wegert.de> wrote in message
>> news:84hbf1jzqq.fsf@zak.home.volker-wegert.de...
>>> I have a few cases where I need to display a drop-down listbox using a
>>> direct editing feature where the visual element itself is smaller than
>>> the
>>> listbox has to be to display the content text. While the dropped-down
>>> list
>>> is wide enough to show the entire text of the list entries, the box
>>> itself
>>> seems to be set to a fixed width so that the beginning of the text is
>>> chopped off. See http://imagebin.ca/view/BpdPShmq.html for an example -
>>> the
>>> list of values is OK, but the listbox itself is not wide enough. Is
>>> there a
>>> way to change this?
>
>> The field itself is as large as it is defined in the diagram. You might
>> use
>> a layout feature to adapt the width of the text drop-down field to the
>> length of the displayed text.
>
> In the example above there is no text field and no displayed text in the
> diagram element. It's a checkbox of a dialog (actually a dynpro :-)))
> model
> that contains no text, and I'm using direct editing to select the data
> field
> this checkbox is linked to. For my use case, it would be great if the
> direct
> editing feature had a way to influence the size of the editor control.
> From
> what I can see, the ideal point to plug this in would be the
> TextCellLocator. There is a similar logic for text fields, using
> def.stretchTextfieldToFitText(). I have tried this in a local copy of
> Graphiti, and it works... Do you want me to submit a patch?
>
> Thanks
> Volker
>
> --
> * Volker Wegert * http://www.volker-wegert.de/contact *
> "Programmieren ist ein Handwerk mit ganz wenigen kreativen Elementen. Die
> Tatsache, dass die meisten Programmierer sich als K
|
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds