Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Width of direct editing drop-down listboxes
Width of direct editing drop-down listboxes [message #641822] Sun, 28 November 2010 14:21 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello,

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?

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
I used to drive a Heisenbergmobil, but everytime I looked at the speedometer,
I got lost.
Re: Width of direct editing drop-down listboxes [message #643777 is a reply to message #641822] Wed, 08 December 2010 09:06 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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.

Michael


"Volker Wegert" <mail@volker-wegert.de> wrote in message
news:84hbf1jzqq.fsf@zak.home.volker-wegert.de...
> Hello,
>
> 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?
>
> Thanks
> Volker
>
> --
> * Volker Wegert * http://www.volker-wegert.de/contact *
> I used to drive a Heisenbergmobil, but everytime I looked at the
> speedometer,
> I got lost.
Re: Width of direct editing drop-down listboxes [message #643969 is a reply to message #643777] Wed, 08 December 2010 20:42 Go to previous messageGo to next message
Volker Wegert is currently offline Volker WegertFriend
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 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
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
Re: Width of direct editing drop-down listboxes [message #644461 is a reply to message #644272] Sat, 11 December 2010 16:30 Go to previous message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
"Michael Wenz" <michael.wenz@sap.com> writes:

> Not sure if I fully understood your scenario, but yes, please feel free to
> provide a patch.

Done, 322363

Volker


--
* Volker Wegert * http://www.volker-wegert.de/contact *
"Der Kopf ist rund, damit das Denken die Richtung wechseln kann." (Francis
Picabia)
Previous Topic:Grid width and resizing
Next Topic:design question - bundle feature classes as local classes?
Goto Forum:
  


Current Time: Wed Apr 24 21:56:39 GMT 2024

Powered by FUDForum. Page generated in 0.03391 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top