StrataFrame Forum

Two dropdown buttons appear with Inherited UI

http://forum.strataframe.net/Topic1605.aspx

By Andria Jensen - 6/20/2006

I am putting a DateEdit field on my form at runtime and binding it to a business object using the following code:

Dim fldDate As New DateEdit
Dim itemDate As
LayoutControlItem

fldDate.BusinessObject = Me
fldDate.BindingField = "Date"
itemDate = LayoutGroup.AddItem(New LayoutControlItem, Utils.InsertType.Bottom)itemDate.Text =
"Date:"
itemDate.Control = fldDate

When I use this it gives me the correct result except that two buttons appear instead of one.  This is a result of something in the Inherited UI, because I can replace the Inherited DateEdit with a straight DevExpress DateEdit and I have no problems.  But I need the data bound to a business object, so I need to be able to use the Inherited control.  Any ideas or is this a bug?

 

By StrataFrame Team - 6/20/2006

Two buttons appear within the DateEdit control?  As in two drop-down buttons?
By Andria Jensen - 6/20/2006

Yep, two dropdown buttons...I thought it was strange too.  I cleared out the Properties.Buttons and then added a new one and it was fine.  Somehow two buttons are added.  I can send you a screenshot if you'd like.