Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread Tcombobox
Wed, Sep 12 2012 6:11 AMPermanent Link

John Taylor

What's up with TCombobox in EWB.  I populate the items property but when I
run the project and select an item the text stays the same, does not
change to the selected item in the dropdown.

What am I doing wrong ?  Also, it has no itemindex property !?

JT
Wed, Sep 12 2012 3:02 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

John,

<< What's up with TCombobox in EWB.  I populate the items property but when
I run the project and select an item the text stays the same, does not
change to the selected item in the dropdown. >>

Is the TComboBox control data-bound (DataSet and DataColumn properties
assigned) ?

<< Also, it has no itemindex property !? >>

An ItemIndex property will be in 1.01, which will hopefully be out in the
next couple of days.

If you have any other questions, please let me know.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Sep 12 2012 3:45 PMPermanent Link

John Taylor

Tim,

No it is not bound but I do have the 'Text' property set to <make selection>
at design time but as I recall the behavior was the
same with the text property blank, it is not inside a TPanel either

John

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:17DFF890-5C86-47B4-BFC4-346300FB4753@news.elevatesoft.com...
> John,
>
> << What's up with TCombobox in EWB.  I populate the items property but
> when I run the project and select an item the text stays the same, does
> not change to the selected item in the dropdown. >>
>
> Is the TComboBox control data-bound (DataSet and DataColumn properties
> assigned) ?
>
> << Also, it has no itemindex property !? >>
>
> An ItemIndex property will be in 1.01, which will hopefully be out in the
> next couple of days.
>
> If you have any other questions, please let me know.
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
Thu, Sep 13 2012 1:28 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

John,

<< No it is not bound but I do have the 'Text' property set to <make
selection> at design time but as I recall the behavior was the same with the
text property blank, it is not inside a TPanel either >>

This may have been fixed in the 1.01 candidate that I'm using as part of
another fix for the combo box, but I don't remember there being an issue
with this in 1.00.  Could you send me a small project that shows this
happening ?  Also, are you just using the embedded web browser in the IDE ?

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Sep 14 2012 8:19 AMPermanent Link

John Taylor

Tim,

I just figured it out...  It is the 'readonly' property.  When set to true ,
the combobox exhibits the behavior I describe.

Perhaps, I misunderstand that property.  I want the combo to behave the same
as in Delphi when the style is csdropdownlist.

John

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:E978F7D9-19E6-495E-8134-B593B947A01F@news.elevatesoft.com...
> John,
>
> << No it is not bound but I do have the 'Text' property set to <make
> selection> at design time but as I recall the behavior was the same with
> the text property blank, it is not inside a TPanel either >>
>
> This may have been fixed in the 1.01 candidate that I'm using as part of
> another fix for the combo box, but I don't remember there being an issue
> with this in 1.00.  Could you send me a small project that shows this
> happening ?  Also, are you just using the embedded web browser in the IDE
> ?
>
> Thanks,
>
> Tim Young
> Elevate Software
> www.elevatesoft.com
Fri, Sep 14 2012 8:28 AMPermanent Link

John Taylor

Ok, it seems I should have readonly false and allowedit false to achieve
that 'style', correct ?

Apologies for taking up your time on this !

JT

"John Taylor" <jcta@snappysoftware.com> wrote in message
news:0CB3693F-BF36-48C7-B054-136CB3289529@news.elevatesoft.com...
> Tim,
>
> I just figured it out...  It is the 'readonly' property.  When set to true
> , the combobox exhibits the behavior I describe.
>
> Perhaps, I misunderstand that property.  I want the combo to behave the
> same as in Delphi when the style is csdropdownlist.
>
> John
>
> "Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
> news:E978F7D9-19E6-495E-8134-B593B947A01F@news.elevatesoft.com...
>> John,
>>
>> << No it is not bound but I do have the 'Text' property set to <make
>> selection> at design time but as I recall the behavior was the same with
>> the text property blank, it is not inside a TPanel either >>
>>
>> This may have been fixed in the 1.01 candidate that I'm using as part of
>> another fix for the combo box, but I don't remember there being an issue
>> with this in 1.00.  Could you send me a small project that shows this
>> happening ?  Also, are you just using the embedded web browser in the IDE
>> ?
>>
>> Thanks,
>>
>> Tim Young
>> Elevate Software
>> www.elevatesoft.com
>
Mon, Sep 17 2012 1:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

John,

<< Ok, it seems I should have readonly false and allowedit false to achieve
that 'style', correct ? >>

Correct.  AllowEdit controls whether the edit portion is actually
"editable".

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jan 21 2013 9:00 AMPermanent Link

Matthew Jones

Can I pick up on this please. I'm using 1.01 build 4, and I did a "themes" combo
with Default, Modern and Glossy Blue items. I can click on the text part of the
combo, and I get a caret. I can't edit it, but the caret gives that impression. If
I then press "m" it selects the Modern theme. If I press 'd' I get default. This is
without the drop down box visible.

It's not really a major issue, but it would be nice to improve at some point.

/Matthew Jones/
Mon, Jan 21 2013 10:33 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Can I pick up on this please. I'm using 1.01 build 4, and I did a
"themes" combo with Default, Modern and Glossy Blue items. I can click on
the text part of the combo, and I get a caret. I can't edit it, but the
caret gives that impression. If I then press "m" it selects the Modern
theme. If I press 'd' I get default. This is without the drop down box
visible.  >>

Welcome to the frustrating world of "this is the way that the browser does
it".   It's one of the reasons behind this:

http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=2041#2041

Tim Young
Elevate Software
www.elevatesoft.com
Image