Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Firemonkey ComboBox change bind on Mouse Move


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Diego Barbosa

Posts: 1
Registered: 3/14/11
Firemonkey ComboBox change bind on Mouse Move  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2017 6:46 PM
I am having problem where the combobox changes the bind value in the mouse move.

I use the Delphi 10 Seatle.

I create the bind of the combobox at runtime.

  OBindSourceLookup := TBindSourceDB.Create (ComboBox.Owner);
  OBindSourceLookup.DataSet := oLookUpTbl;
 
  LinkBind := TLinkFillControlToField.Create (ComboBox);
  LinkBind.Name := 'LinkBind _' + poField.FieldName;
  LinkBind.Control := ComboBox;
  LinkBind.DataSource := poBindSourceDB;
  LinkBind.FieldName := poField.FieldName;
  LinkBind.FillDataSource := oBindSourceLookup;
  LinkBind.FillValueFieldName := 'key';
  LinkBind.FillDisplayFieldName := 'displayValue';
  LinkBind.Active := True;


The problem occurs only with the DropDownKind property equal to TDropDownKind.Custom.

In the dropdown of the combobox, when you move the mouse over the items, the dataset enter in edit, and the value changes according to the item the mouse is over.

Even if you do not click on items, just moving the mouse changes the value.

In the image below, you can see that the Data.Bind has an Observer that is enabled in the MouseMove of the Combobox.

[https://uploaddeimagens.com.br/imagens/img_19062017_215128_0-png]

*One more thing, the Text of the combobox does not change, just the internal value of bind.

Does anyone know how to solve this problem?

Edited by: Diego Barbosa on Jun 19, 2017 6:50 PM

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02