Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Combobox to select item
Fri, May 3 2013 7:54 AMPermanent Link

Christian Kaufmann

Hi,

even when I set AllowEdit := False for a TCombobox, it remains a INPUT
element which has different behaviour compared to a SELECT:

- click only works on the arrow
- selection is only the text and not the whole item
- arrow up/down does not change the selected item

Did anybody find a way to create regular SELECT html elements?

cu Christian
Fri, May 3 2013 8:57 AMPermanent Link

Matthew Jones

I hate to do this, but if you search back you will find a lot of this is discussed
already.

/Matthew Jones/
Fri, May 3 2013 9:54 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Christian,

<< even when I set AllowEdit := False for a TCombobox, it remains a INPUT
element which has different behaviour compared to a SELECT: >>

That is by-design.  It's not a native combo-box, it's an edit with a list
box attached.

<< - click only works on the arrow >>

As opposed to ??

<< - selection is only the text and not the whole item >>

Again, not sure what you're talking about here.

<< - arrow up/down does not change the selected item >>

This I can fix.

<< Did anybody find a way to create regular SELECT html elements? >>

You don't want to do that - they won't be themed and you won't be able to
make them look decent.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, May 3 2013 4:28 PMPermanent Link

Christian Kaufmann

><< - click only works on the arrow >>
>As opposed to ??

If you have a SELECT element, you can click anywhere in the text to
see the dropdown list.

><< - selection is only the text and not the whole item >>
>Again, not sure what you're talking about here.

In a SELECT, that has focus, the whole rectangle is selected (e.g.
blue color). In your version with INPUT, only the text itself is
selected.

>You don't want to do that - they won't be themed and you won't be able to
>make them look decent.
That may be right, but I would prefere to have a native browser SELECT
control with behaviour people are used to. Maybe you could just offer
a separate control for that.

btw: I read the old threads about this. Since it was from last
September, I thought, things might have changed since then.

cu Christian
Tue, May 7 2013 4:33 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Christian,

<< That may be right, but I would prefere to have a native browser SELECT
control with behaviour people are used to. Maybe you could just offer a
separate control for that. >>

It's not that simple, unfortunately.  There's issues with how such a control
is rendered at design-time vs. run-time and a host of other problems to deal
with.  A more likely option will be to simply have the existing base control
behave as a button instead of an edit in such cases.

Tim Young
Elevate Software
www.elevatesoft.com
Image